Package zeroinstall :: Package gtkui :: Module gtkutils :: Class Template
[frames] | no frames]

Class Template

source code

object --+
         |
        Template

Wrapper for GtkBuilder widget tree that throws a sensible exception if the widget isn't found.

Instance Methods
 
__init__(self, builderfile, root)
Constructor.
source code
 
get_widget(self, name=None)
Look up a widget by name.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, builderfile, root)
(Constructor)

source code 

Constructor.

Parameters:
  • builderfile - pathname of the .ui file to load
  • root - the name of the top-level widget inside the file
Overrides: object.__init__