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 169: Line 169:
 
This uses the standard Python logging class.  Logging level and other logging details are controlled using the parameter file.  
 
This uses the standard Python logging class.  Logging level and other logging details are controlled using the parameter file.  
 
Logger ( in logger.py ) and Parameters ( in parameters.py ). The controller creates one of each, and make them available to the other components. The other components can interact with them, and uses them respectively for logging events, and getting access to parameters ( those aspects of the application that are particularly easy to change ).  I describe more of this in [[My Python Coding Conventions]]
 
Logger ( in logger.py ) and Parameters ( in parameters.py ). The controller creates one of each, and make them available to the other components. The other components can interact with them, and uses them respectively for logging events, and getting access to parameters ( those aspects of the application that are particularly easy to change ).  I describe more of this in [[My Python Coding Conventions]]
 
== System Editor ==
 
I often use the system editor, for example to view the log files.  This has gotten more complicated over time ( and is still a bit in flux now ).  The current approach is to give the system a list of possible editor programs ( some hardcoded and some via parameters ) and try each until one works or all are tried.  The system then remembers the one that works.  Code for this is mostly in AppGlobal with a bit in parameters.
 
  
 
== Other Classes ==
 
== Other Classes ==

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)