skeinforge_tools.profile ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/profile.py

Previous / Next / Contents


Profile is a script to set the craft types setting for the skeinforge chain.

Profile presents the user with a choice of the craft types in the profile_plugins folder. The chosen craft type is used to determine the craft type profile for the skeinforge chain. The default craft type is extrusion.

The setting is the selection. If you hit 'Save and Close' the selection will be saved, if you hit 'Cancel' the selection will not be saved.

To change the profile setting, in a shell in the profile folder type:
> python profile.py

An example of using profile from the python interpreter follows below.


> python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import profile
>>> profile.main()
This brings up the profile setting dialog.


Previous / Next / Contents


 
Modules
       
__init__
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
os
skeinforge_tools.skeinforge_utilities.settings

 
Classes
       
ProfileMenuRadio
ProfileMenuSaveListener
ProfilePluginRadioButtonsSaveListener
ProfileRepository
ProfileSelectionMenuRadio
ProfileTypeMenuRadio

 
class ProfileMenuRadio
    A class to display a profile menu radio button.
 
  Methods defined here:
__init__(self, profilePluginFileName, menu, name, radioVar, value)
Create a profile menu radio.
clickRadio(self)
Workaround for Tkinter bug, invoke and set the value when clicked.

 
class ProfileMenuSaveListener
    A class to update a profile menu.
 
  Methods defined here:
__init__(self, menu, window)
Set the menu.
save(self)
Profile has been saved and profile menu should be updated.

 
class ProfilePluginRadioButtonsSaveListener
    A class to update the profile radio buttons.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
getFromRadioPlugins(self, radioPlugins, repository)
Initialize.
save(self)
Profile has been saved and profile radio plugins should be updated.

 
class ProfileRepository
    A class to handle the profile entities.
 
  Methods defined here:
__init__(self)
Set the default entities, execute title & repository fileName.
updateRelay(self)
Update the plugin frame then the ProfileSaveListeners.

 
class ProfileSelectionMenuRadio
    A class to display a profile selection menu radio button.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
clickRadio(self)
Workaround for Tkinter bug, invoke and set the value when clicked.
getFromMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.
setToMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

 
class ProfileTypeMenuRadio(ProfileSelectionMenuRadio)
    A class to display a profile type menu radio button.
 
  Methods defined here:
clickRadio(self)
Workaround for Tkinter bug, invoke and set the value when clicked.
getFromMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

Methods inherited from ProfileSelectionMenuRadio:
addToDialog(self, gridPosition)
Add this to the dialog.
setToMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

 
Functions
       
addListsToCraftTypeRepository(fileNameHelp, repository)
Add the value to the lists.
addSubmenus(craftTypeName, menu, pluginFileName, pluginPath, profileRadioVar)
Add a tool plugin menu.
addToMenu(master, menu, repository, window)
Add a tool plugin menu.
addToProfileMenu(menu)
Add a profile menu.
getCraftTypeName(subName='')
Get the craft type from the profile.
getCraftTypePluginModule(craftTypeName='')
Get the craft type plugin module.
getNewRepository()
Get the repository constructor.
getPluginFileNames()
Get analyze plugin fileNames.
getPluginsDirectoryPath()
Get the plugins directory path.
getProfileName(craftTypeName)
Get the profile name from the craft type name.
getReadProfileRepository()
Get the read profile repository.        from skeinforge_tools import profile
main()
Display the profile dialog.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)