def __init__(self, app, master): GenericPlugin.__init__(self, app, master) events.connect(events.NO_DOCS, self.set_state) events.connect(events.DOC_CHANGED, self.set_state) events.connect(events.SELECTION_CHANGED, self.set_state)
def __init__(self, app, master): GenericPlugin.__init__(self, app, master) events.connect(events.CONFIG_MODIFIED, self.config_changed)
def __init__(self, app, master): GenericPlugin.__init__(self, app, master) events.connect(events.DOC_CHANGED, self.update) events.connect(events.DOC_MODIFIED, self.update)