Home | Trees | Indices | Help |
|
---|
|
AutoGlade main class.
This is the main AutoGlade class.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
str |
__reAutoInvoke = re.compile(AUTO_INVOKE_RE) The regular expression to parse the Glade widget name |
||
gtk.Widget
|
__menuItemAbout Stock menu item about |
||
gtk.Widget
|
__menuItemPreferences Stock menu item preferences |
||
gtk.Widget
|
__menuItemQuit Stock menu item quit |
|
Constructor Constructs the AutoGlade object based on the arguments passed.
|
__getitem__ Provides self['name'].method() access. If thekey
starts with on_ then the corresponding method is executed
instead of returning the attribute value.
|
__getattr__ Provides self.name.method() access
|
Get the top level widget names. Glade XML files have not been parsed yet. |
Get signal handler from Auto Glade Object key This method obtains the signal handler from the Auto Galde Object key in camel case, assuming the handler method named is formed by the last component of the camel case key, capitalized and with the prefix 'auto' prepended. Examples:agokey = menuItemOpen} method = autoOpen} agokey = toolButtonSaveas # note the lowercase in as} method = autoSaveas
|
|
|
Fix a problem found with Combo Box widgets. Is this a libglade bug ? |
Get the preferences dialog from the internal list of top level widgets and set the AutoGladeObject accordingly. To find it, widget name is matched against 'preferences' ignoring case. |
Find a stock item in the elements tree. WARNING: Right now only find the first widget if more than one satisfies the conditions
|
List the widget names possible filtered. This method was an idea suggested by Charles Edward Pax and Christopher Pax from Gladex project (http://www.openphysics.org/~gladex/) |
|
clicked
signal.
|
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.
|
|
|
Auto invoke the method codified in widget name Auto invoke the method codified and described in the Glade widget
name. The pattern string is described by the regular expression in self.__reAutoInvoke which typically is
'(.*):auto:(.*)' or everything before ':auto:' is the standard widget
name, and everything after is the method name or widget (in the case of
name Pre, name and
name Post are invoked in order (if exist) and if and only if
the predecesor returns True .
|
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 valuesThese are the 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
|
auto run the graphical user interface Runs the graphical user interface automatically. There ase some special cases contempled.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Fri Aug 15 00:10:49 2008 | http://epydoc.sourceforge.net |