GLXCurses.Actionable module¶
-
class
GLXCurses.Actionable.
Actionable
[source]¶ Bases:
object
Actionable — An interface for widgets that can be associated with actions
- Known Implementations
- Actionable is implemented by GLXC.Actionable and contain a list of widget
- Button, CheckButton, CheckMenuItem, ColorButton, FontButton, ImageMenuItem, LinkButton, ListBoxRow, LockButton, MenuButton, MenuItem, MenuToolButton, ModelButton, RadioButton, RadioMenuItem, RadioToolButton, ScaleButton, SeparatorMenuItem, Switch, TearoffMenuItem, ToggleButton, ToggleToolButton, ToolButton, VolumeButton.
-
action_name
¶
-
action_target
¶
-
get_action_name
()[source]¶ Gets the action name for
actionable
.See set_action_name() for more information.
Returns: the action name, or None if unset. Return type: str or None
-
set_action_name
(action_name=None)[source]¶ Specifies the name of the action with which this widget should be associated. If action_name is NULL then the widget will be unassociated from any previous action.
Usually this function is used when the widget is located (or will be located) within the hierarchy of a ApplicationWindow.
Names are of the form “win.save” or “app.quit” for actions on the containing ApplicationWindow or its associated GLXCurses.Application, respectively.
This is the same form used for actions in the GMenu associated with the window.
Parameters: action_name (str or None) – an action name, or None. Raises: TypeError – if action_name
is not a str type or None