Home | Trees | Index | Help |
|
---|
Package src :: Module autoglade :: Class AutoGlade |
|
AutoGlade main class.
This is the main AutoGlade class.Method Summary | |
---|---|
Constructor | |
__call__(args)
| |
__getattr__ | |
__getitem__ | |
abbreviations(self)
| |
autoDumpShell(self,
var,
val)
| |
autoDumpText(self,
var,
val)
| |
autoDumpValues(self)
| |
autoErrorDialog(self,
ex)
| |
autoInfoDialog(self,
msg,
message_format)
| |
Default autoInit method, can be overriden by children. | |
Auto invoke the method codified in widget name | |
autoQuestionDialog(self,
msg,
buttons)
| |
auto run the graphical user interface | |
autoWarningDialog(self,
msg,
message_format)
| |
getDom(self)
| |
getGladeInterface(self)
| |
getSignalHandlers(self)
| |
getTopLevelWidgets(self)
| |
help(self)
| |
isInputClass(self,
widgetClass)
| |
on_autobutton_clicked | |
on_autobuttoncollapseall_clicked(self,
widget)
| |
on_autobuttonexpandall_clicked(self,
widget)
| |
Default handler for gtk.Dialog response
signal | |
Default handler for menu items activate signal | |
Toggle the 'sensitive' property on a target widget | |
Toggle the 'visible' property on a target widget | |
on_autotoolbutton_clicked | |
Default handler for Cancel buttons clicked
signal. | |
quit(self,
widget,
*args)
| |
This method uses a value set by self.__getAboutDialogWidget | |
VOID_get_children(self,
widget)
| |
VOID_printWidgetTree(self,
widget)
| |
__autoConnect(self)
| |
Find a stock item in the elements tree. | |
Fix a problem found with Combo Box widgets. | |
Get the about dialog from the internal list of top level widgets and set the AutoGladeObject accordingly. | |
Set self.__buttonAbout value with the stock item
gtk-about if found. | |
Set self.__menuItemAbout value with the stock
item gtk-about if found. | |
Set self.__menuItemQuit value with the stock
item gtk-quit if found. | |
__getSignalHandlers(self)
| |
Get the top level widget names. | |
Get the top level widgets parsing the glade XML file. | |
Map the autoInvoke names (widget:auto:method) to its plain form (widget). |
Instance Variable Summary | |
---|---|
gtk.Widget |
__menuItemAbout : Stock menu item about |
gtk.Widget |
__menuItemQuit : Stock menu item quit |
str | __reAutoInvoke : The regular expression to parse the Glade widget name |
Class Variable Summary | |
---|---|
bool | DEBUG : Set debugging output |
NoneType |
_AutoGlade__aboutDialog = None |
dict |
_AutoGlade__autoDumpMap = {}
|
NoneType |
_AutoGlade__buttonAbout = None |
NoneType |
_AutoGlade__gconf = None |
NoneType |
_AutoGlade__mainTopLevelWidget = None |
NoneType |
_AutoGlade__menuItemAbout = None |
NoneType |
_AutoGlade__menuItemQuit = None |
SRE_Pattern |
_AutoGlade__reAutoInvoke = (.*):auto:([^:]*)(:(.+))?
|
SRE_Pattern |
_AutoGlade__reSetTreeviewCell = setTreeview(.+)Cell(\d+)...
|
dict |
_AutoGlade__signalHandlers = {}
|
list |
_AutoGlade__topLevelWidgetNames = []
|
dict |
_AutoGlade__topLevelWidgets = {}
|
Method Details |
---|
__init__(self,
glade=None,
root=None,
autorun=True,
autoinit=None,
autodump='text')
|
__getattr__(self,
name)
|
__getitem__(self,
key)
|
autoInit(self, autoinit=None)Default autoInit method, can be overriden by children.
|
autoRun(self)auto run the graphical user interface Runs the graphical user interface automatically. There ase some special cases contempled. #. If there's no #. If the __mainTolLvelWidget is not a
gtk.Dialog then the main GTK loop is entered
|
on_autobutton_clicked(self, widget, *args)on_autobutton_clicked
|
on_autodialog_response(self, widget, response, *args)Default handler for This is a handler method intended to be a simple dialog handler. response signal of widget must be connected to this method and the user data parameter must be left untouched (as of Glade 3.0 and libglade 2). Note: Perhaps this method should set a Singleton object value to the response receivedgtk response values gtk.RESPONSE_NONE=-1 gtk.RESPONSE_REJECT=-2
gtk.RESPONSE_ACCEPT=-3 gtk.RESPONSE_DELETE_EVENT=-4
gtk.RESPONSE_OK=-5 gtk.RESPONSE_CANCEL=-6 gtk.RESPONSE_CLOSE=-7
gtk.RESPONSE_YES=-8 gtk.RESPONSE_NO=-9 gtk.RESPONSE_APPLY=-10
gtk.RESPONSE_HELP=-11
|
on_automenuitem_activate(self, widget, *args)Default handler for menu items This is a handler method intended to be a simple menu item handler. The idea is to simplify handling menu items usually connected to dialog boxes. activate signal on the menu item object must point to this function and user data parameter of this signal must point to the object to call. In the case of a dialog, user data parameter is the dialog object which this method will run. This can also be used (and it's used by autoInvoke) ingtk.ToolButton objects.
|
on_autosensitize(self, widget, targetWidget)Toggle the 'sensitive' property on a target widget |
on_autoshow(self, widget, targetWidget)Toggle the 'visible' property on a target widget |
on_autotoolbutton_clicked(self, widget)on_autotoolbutton_clicked
|
on_cancelbutton_clicked(self, widget)Default handler for Cancel buttonsclicked
signal.
|
VOID__getAboutDialogElement(self)This method uses a value set by self.__getAboutDialogWidget |
__findStockItem(self, stock, gtkClass=<type 'gtk.Widget'>)Find a stock item in the elements tree.
|
__fixComboBoxNotShowingActiveItem(self)Fix a problem found with Combo Box widgets. Is this a libglade bug ? |
__getAboutDialog(self)Get the about dialog from the internal list of top level widgets and set theAutoGladeObject accordingly.
|
__getButtonAbout(self)Setself.__buttonAbout value with the stock item
gtk-about if found.
|
__getMenuItemAbout(self)Setself.__menuItemAbout value with the stock
item gtk-about if found.
|
__getMenuItemQuit(self)Setself.__menuItemQuit value with the stock
item gtk-quit if found.
|
__getTopLevelWidgetNames(self)Get the top level widget names. Glade XML files have not been parsed yet. |
__getTopLevelWidgets(self)Get the top level widgets parsing the glade XML file. The widget trees (one for every top level widget) are also created in this operation. |
__mapAutoInvokeWidgetNames(self)Map the autoInvoke names (widget:auto:method) to its plain form (widget). Invoke 'auto:init' method if present. Connect 'auto:sensitize' signals. Connect signal for menu items (and tool buttons ?) if not connected |
Instance Variable Details |
---|
__menuItemAboutStock menu item about
|
__menuItemQuitStock menu item quit
|
__reAutoInvokeThe regular expression to parse the Glade widget name
|
Class Variable Details |
---|
DEBUGSet debugging output
|
_AutoGlade__aboutDialog
|
_AutoGlade__autoDumpMap
|
_AutoGlade__buttonAbout
|
_AutoGlade__gconf
|
_AutoGlade__mainTopLevelWidget
|
_AutoGlade__menuItemAbout
|
_AutoGlade__menuItemQuit
|
_AutoGlade__reAutoInvoke
|
_AutoGlade__reSetTreeviewCell
|
_AutoGlade__signalHandlers
|
_AutoGlade__topLevelWidgetNames
|
_AutoGlade__topLevelWidgets
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Sep 30 22:02:21 2007 | http://epydoc.sf.net |