GOffice.OptionMenu

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Actionable Gtk.Actionable GObject.GInterface->Gtk.Actionable Gtk.Activatable Gtk.Activatable GObject.GInterface->Gtk.Activatable Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GOffice.OptionMenu GOffice.OptionMenu Gtk.Button Gtk.Button Gtk.Actionable->Gtk.Button Gtk.Activatable->Gtk.Button Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Button Gtk.Buildable->Gtk.Widget Gtk.Button->GOffice.OptionMenu Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

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

new ()

get_history ()

get_label ()

get_menu ()

select_item (item)

set_history (selection)

set_menu (menu)

Virtual Methods

Inherited:

Gtk.Button (6), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4), Gtk.Activatable (2)

do_changed ()

Properties

Inherited:

Gtk.Button (9), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2), Gtk.Activatable (2)

Name

Type

Flags

Short Description

menu

Gtk.Menu

r/w

The menu of options

Style Properties

Inherited:

Gtk.Button (7), Gtk.Widget (17)

Signals

Inherited:

Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

changed

Fields

Inherited:

Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

active

bool

r

button

Gtk.Button

r

button_label

Gtk.Label

r

menu

Gtk.MenuShell

r

selected

Gtk.MenuItem

r

Class Details

class GOffice.OptionMenu(*args, **kwargs)
Bases:

Gtk.Button

Abstract:

No

Structure:

GOffice.OptionMenuClass

classmethod new()
Return type:

Gtk.Widget

get_history()
Returns:

the selected menu_item

Return type:

Gtk.Widget

Retrieves the currently selected menu item.

get_label()
Returns:

The Gtk.Label used for the button text.

Return type:

Gtk.Widget

get_menu()
Returns:

The currently set menu.

Return type:

Gtk.Widget

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:

RUN_LAST

Parameters:

option_menu (GOffice.OptionMenu) – The object which received the signal

Property Details

GOffice.OptionMenu.props.menu
Name:

menu

Type:

Gtk.Menu

Default Value:

None

Flags:

READABLE, WRITABLE

The menu of options