class ConnectorMixin(object): (source)
Known subclasses: zim.config.dicts.ControlledDict, zim.config.manager.ConfigFile, zim.gui.widgets.Dialog, zim.gui.widgets.WindowSidePaneWidget, zim.notebook.index.base.IndexerBase, zim.notebook.index.base.TreeModelMixinBase, zim.notebook.notebook.Notebook, zim.plugins.bookmarksbar.BookmarkBar, zim.plugins.ExtensionBase, zim.plugins.PluginClass, zim.plugins.PluginManagerClass, zim.plugins.tableeditor.TableModel, zim.plugins.tableofcontents.FloatingToC, zim.plugins.tableofcontents.ToCWidget, zim.plugins.tags.TagCloudWidget, zim.plugins.tasklist.gui.TaskListWindow, zim.plugins.versioncontrol.VCSApplicationBase
| Method | connectto |
Connect to signals of another object E.g.: |
| Method | connectto_all |
Convenience method to combine multiple calls to connectto(). |
| Method | disconnect_all |
Disconnect all signals that have been connected with connectto and friends. Typically called when you want to destroy this object. |
| Method | disconnect_from |
Disc all signals that have been connected with connectto and friends to a specific object. |
| Method | _disconnect_from |
Undocumented |
| Instance Variable | _connected_signals |
Undocumented |
Connect to signals of another object E.g.:
self.connectto(button, 'clicked', self.on_button_clicked)
| Parameters | |
| obj | the object to connect to |
| signal | the signal name |
| handler | the callback function, or None to map to a method prefixed with "on_". |
| order | if order is SIGNAL_NORMAL then GObject.connect() is used, if order is SIGNAL_AFTER then GObject.connect_after() is used. |
| Returns | |
| the handler id | |
connectto().| Parameters | |
| obj | the object to connect to |
| signals | a list of signals. Elements can either be signal names or tuples where the sub-elements are the parameters for
self.connectto_all(some_object (
'changed' # defaults to "on_changed()
('open', on_open_something, None, SIGNAL_AFTER),
))
The optional parameters are used as default values when these parameters are not specified explicitly per signal. |
| handler | optional parameter |
| order | optional parameter |
zim.plugins.tableofcontents.FloatingToCconnectto and friends. Typically called when you want to destroy this object.