18 if action_info.is_separator():
34 disable = enable =
lambda event:
None
47 registerer.unregister(self)
51 return self.
actionaction
is not None
57 return self.
iconicon
is not None
74 _Registrable.__init__(self, action_info)
76 self.
namename = action_info.name
81 self.
docdoc = action_info.doc
103 listener.enabled_status_changed(self)
119 if not self.
containercontainer.IsShownOnScreen():
121 widget = self.
containercontainer.FindFocus()
123 if widget == self.
containercontainer.Parent:
125 widget = widget.GetParent()
132 _Registrable.__init__(self, action_info)
Acts based on user actions if action is enabled.
def enable(self)
Enables action and related menu item, toolbar button and shortcut.
def __init__(self, action_info)
def _is_always_active(self)
def _container_is_active(self)
def _is_always_inactive(self)
def _inform_changes_in_enabled_status(self)
def inform_changes_in_enabled_status(self, listener)
def get_insertion_index(self, menu)
_enabled_status_listeners
def __init__(self, action_info)
def register(self, registerer)
def ActionFactory(action_info)