GOffice.OptionMenu¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Button (29), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Actionable (5), Gtk.Activatable (6)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Button (6), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4), Gtk.Activatable (2)
|
Properties¶
- Inherited:
Gtk.Button (9), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2), Gtk.Activatable (2)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The menu of options |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
active |
r |
||
button |
r |
||
button_label |
r |
||
menu |
r |
||
selected |
r |
Class Details¶
- class GOffice.OptionMenu(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- get_history()¶
- Returns:
the selected menu_item
- Return type:
Retrieves the currently selected menu item.
- get_menu()¶
- Returns:
The currently set menu.
- Return type:
- select_item(item)¶
- Parameters:
item (
Gtk.MenuItem
) –
- set_history(selection)¶
- Parameters:
selection ([
Gtk.MenuItem
]) – a list of indices giving the menu to select.
Selects an item. The last number in the list is the rank of the item to select in its menu and the previous ones are the ranks of the submenus containing the item to select.
- set_menu(menu)¶
- Parameters:
menu (
Gtk.Widget
) –
- do_changed() virtual¶
Signal Details¶
- GOffice.OptionMenu.signals.changed(option_menu)¶
- Signal Name:
changed
- Flags:
- Parameters:
option_menu (
GOffice.OptionMenu
) – The object which received the signal