Public Member Functions | |
def | __init__ |
def | add_item |
Public Attributes | |
log | |
translate | |
viewport | |
menu_items | |
icon | |
Detailed Description
The central widget for the commotion client. This widget initalizes all other sub-widgets and extensions as well as defines the paramiters of the main GUI container. An example of adding a single button to the menu that calls a function "save_form()" new_button = MenuItem my_button.setIcon(icon.save) my_button.setText(self.translate("menu", "Save")) new_button.action = self.save_form self.add_item(new_button)
Constructor & Destructor Documentation
def commotion_client.GUI.extension_toolbar.ExtensionToolBar.__init__ | ( | self, | |
viewport | |||
) |
Sets up all the translation, logging, and core items needed for an extension toolbar. Args: extension_menu_items (object): The extension specific menu-item to be used by an extension. This class is derived from the viewport (object): The extensions viewport. This allows menu_items to have its actions interact with the current viewport.
References commotion_client.GUI.extension_toolbar.ExtensionToolBar._dirty, commotion_client.extensions.config_editor.main.ViewPort._dirty, commotion_client.GUI.extension_toolbar.ExtensionToolBar.icon, commotion_client.GUI.crash_report.CrashReport.log, commotion_client.extensions.config_editor.main.ViewPort.log, commotion_client.GUI.extension_toolbar.ExtensionToolBar.log, commotion_client.commotion_client.HoldStateDuringRestart.log, commotion_client.GUI.crash_report.ReportGatherer.log, commotion_client.commotion_client.CommotionClientApplication.log, commotion_client.GUI.extension_toolbar.ExtensionToolBar.menu_items, commotion_client.extensions.config_editor.main.ViewPort.translate, commotion_client.GUI.extension_toolbar.ExtensionToolBar.translate, commotion_client.commotion_client.CommotionClientApplication.translate, and commotion_client.GUI.extension_toolbar.ExtensionToolBar.viewport.
The documentation for this class was generated from the following file:
- commotion_client/GUI/extension_toolbar.py
Generated on Fri Jun 6 2014 13:22:06 for commotion-client by 1.8.7