Editing Smart Terminal Parameter Examples

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 20: Line 20:
  
 
= Structure of the Default Parameter File =
 
= Structure of the Default Parameter File =
 +
  
 
In the '''__init__''' method after a couple of required lines that help hold the application together there is a call to '''self.default_terminal_mode()'''.  This subroutine sets a ton of parameters  
 
In the '''__init__''' method after a couple of required lines that help hold the application together there is a call to '''self.default_terminal_mode()'''.  This subroutine sets a ton of parameters  
 
and this is enough to make the terminal run nicely.  See the comments in the subroutine for more info.
 
and this is enough to make the terminal run nicely.  See the comments in the subroutine for more info.
  
I then have a call to a short ( so far ) subroutine called '''os_tweaks( )'''This subroutine uses a parameter identifying the OS you are running on to tweak some of the settingsThese may be useful to you or notChange them if you want.
+
I then have a call to a short ( so far ) subroutine '''self.computer_name_tweaks( )'''   This subroutine uses the already/automatically set parameter '''computername''' to tweak a few settings depending on the computer's name.   
 +
This makes it easy for me to change the default parameters setting based on the computer I am using to run the programThus I can move the program around without changing the parameter file.  
  
In a similar way there is a subroutine called '''self.computer_name_tweaks(  )'''  This subroutine uses the already/automatically set parameter  '''computername''' to tweak a few settings depending on the computer's name. This makes it easy for me to change the default parameters setting based on the computer I am using to run the program.  Thus I can move the program around without changing the parameter file. These setting, as shipped, are probably not useful to you, but they may be useful as an example.
+
In a similar way there is a subroutine  
  
 
Finally there is a list of calls to subroutines, typically each one is for a different type of setup or mode, all but one should be commented out.  So I might make a call to a subroutine like:  '''self.well_monitor_mode()'''.  This is the mode for an arduino/python project that monitors my water well pressure.  It is a pretty complicated set up, because of the database access in the well monitor.  For this documentation I will do a subroutine called '''tutorial_example_mode()''' which make the most basic changes from the default mode.
 
Finally there is a list of calls to subroutines, typically each one is for a different type of setup or mode, all but one should be commented out.  So I might make a call to a subroutine like:  '''self.well_monitor_mode()'''.  This is the mode for an arduino/python project that monitors my water well pressure.  It is a pretty complicated set up, because of the database access in the well monitor.  For this documentation I will do a subroutine called '''tutorial_example_mode()''' which make the most basic changes from the default mode.

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)