Acts based on user actions if action is enabled. More...
Public Member Functions | |
| def | __init__ (self, action_info) |
| def | act (self, event) |
| def | disable (self) |
| Disables action and related menu item, toolbar button and shortcut. More... | |
| def | enable (self) |
| Enables action and related menu item, toolbar button and shortcut. More... | |
| def | get_shortcut (self) |
| def | is_active (self) |
Public Member Functions inherited from robotide.action.action._Registrable | |
| def | get_insertion_index (self, menu) |
| def | has_action (self) |
| def | has_icon (self) |
| def | has_shortcut (self) |
| def | inform_changes_in_enabled_status (self, listener) |
| def | is_separator (self) |
| def | register (self, registerer) |
| def | unregister (self) |
Public Attributes | |
| action | |
| container | |
| doc | |
| icon | |
| menu_name | |
| name | |
| shortcut | |
Public Attributes inherited from robotide.action.action._Registrable | |
| action | |
| icon | |
| shortcut | |
Private Member Functions | |
| def | _container_is_active (self) |
| def | _inform_changes_in_enabled_status (self) |
| def | _is_always_active (self) |
| def | _is_always_inactive (self) |
Private Attributes | |
| _enabled | |
Additional Inherited Members | |
Static Public Attributes inherited from robotide.action.action._Registrable | |
| disable = lambda event: None | |
Acts based on user actions if action is enabled.
Created from ActionInfo.
If `ActionInfo` contains container, acts and allows to select related UI widgets (menu item, toolbar button) and shortcuts only if the focus is in the given container or its children. Action can be set enabled or disabled which enables/disables also related UI widgets and shortcut.
| def robotide.action.action.Action.__init__ | ( | self, | |
| action_info | |||
| ) |
Reimplemented from robotide.action.action._Registrable.
|
private |
|
private |
|
private |
|
private |
| def robotide.action.action.Action.disable | ( | self | ) |
| def robotide.action.action.Action.enable | ( | self | ) |