Editing SmartPlug Technical

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 73: Line 73:
 
== Parameters ==
 
== Parameters ==
  
Parameters ( in parameters.py ) this is pretty much a structure ( that is all instance variables ) that is instantiated early in the life of the application.  It passes values, strings, numbers, objects to application elements that need them.  The instance of parameters is made globally available thru the AppGlobal class. Values in Parameters are treated as constants, read only.  Much of the appearance and behavior of the application is controlled here.
+
Parameters ( in parameters.py ) this is pretty much a structure ( that is all instance variables ) that is instantiated early in the life of the application.  It passes values, strings, numbers, objects around the application to other parts of the application that need them.  Much of the appearance and behavior of the application is controlled here.
  
 
The standard gui has a button to kick off editing of this file, the application may then be restarted ( another button ) with the new values.
 
The standard gui has a button to kick off editing of this file, the application may then be restarted ( another button ) with the new values.
Line 83: Line 83:
 
Values are often set to None as a default, then later set to some other value.  Or the value may be set several times in a row ( this is an artifact of messing with the values ); only the last value set has any meaning.
 
Values are often set to None as a default, then later set to some other value.  Or the value may be set several times in a row ( this is an artifact of messing with the values ); only the last value set has any meaning.
  
For more info see:  [[Configuration Files For Python]]
+
If asked for in the command line you can also envoke a second parameter file.  This is handy if you want two different instances of the terminal.
 +
 
 +
For a lot more info see:  [[Smart Terminal Parameter Examples]]
  
 
== DataBase ==
 
== DataBase ==

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)