Editing Python Desk Top Applications
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 99: | Line 99: | ||
− | == Singletons == | + | === Singletons === |
− | Most classes are used as singletons, although they may not be coded that way. There is little to stop | + | Most classes are used as singletons, although they may not be coded that way. There is little to stop programmes from creating multiple instances, but why would they. Keep in mind an application is not a library. So in addition to AppGlobal we have |
* AppGlobal -- used as a class, never any instances | * AppGlobal -- used as a class, never any instances | ||
* GUI a single instance is the user interface. | * GUI a single instance is the user interface. | ||
* Main program, controller. A single instance. | * Main program, controller. A single instance. | ||
− | * Helper thread Class a single instance which has most of the hellp thread code, or acts as a controller for the second thread and | + | * Helper thread Class a single instance which has most of the hellp thread code, or acts as a controller for the second thread and communicats with the "main" or GUI thread |
+ | |||
== AppGlobal == | == AppGlobal == |