Package autoglade :: Module autoglade :: Class AutoGladeObject |
[hide private]
[frames] | no frames]

# Class AutoGladeObject

source code
AutoGladeObject is an utility class that relates together the Glade widget, its name and the XML element in a particular autoglade instance.

Instance Methods | [hide private]
__init__(self, autoglade, name=None, widget=None, element=None) Constructor | source code
getName(self) | source code
getWidget(self) | source code
getElement(self) | source code
__getElementByName(self, name) Get the DOM element by name. | source code
connectIfNotConnected(self, signal, handler, *args) Connect the specified signal with handler if there's no another handler defined. | source code

Class Variables | [hide private]
| DEBUG = `True`
| __autoglade = `None`
| __name = `None`
| __widget = `None`
| __element = `None`

Method Details | [hide private]

### __init__(self, autoglade, name=None, widget=None, element=None) (Constructor) | source code
Constructor Parameters: `autoglade` (AutoGlade.AutoGlade) - Autoglade objet to which object is related to `name` (str) - Name of the AutoGladeObject `widget` (`gtk.Widget`) - Widget of the AutoGladeObject. This accepts the special value autoglade.AGO_POSTPONED to defer the initialization of the widget until some conditions are met. `element` (str) - Element of the AutoGladeObject Raises: `AutoGladeRuntimeError` - If the AutoGladeObject cannot be initialized because some values are missing this `Exception` is raised.

### __getElementByName(self, name) | source code
Get the DOM element by name. Parameters: `name` (str) - Element name to find Raises: `AutoGladeRuntimeError` - If there's no element matching name

### connectIfNotConnected(self, signal, handler, *args) | source code
Connect the specified signal with handler if there's no another handler defined. Parameters: `signal` (str) - Signal name `handler` (Callable) - Signal handler `args` (List) - Extra arguments