Amtk.MenuShell

g Amtk.MenuShell Amtk.MenuShell GObject.Object GObject.Object GObject.Object->Amtk.MenuShell

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_from_gtk_menu_shell (gtk_menu_shell)

get_menu_shell ()

Virtual Methods

Inherited:

GObject.Object (7)

do_menu_item_deselected (menu_item)

do_menu_item_selected (menu_item)

Properties

Name

Type

Flags

Short Description

menu-shell

Gtk.MenuShell

r/w/co

Signals

Inherited:

GObject.Object (1)

Name

Short Description

menu-item-deselected

The ::menu-item-deselected signal is emitted when the Gtk.MenuItem ::deselect signal is emitted on a Gtk.MenuItem belonging (directly or indirectly through submenus) to amtk_menu_shell.

menu-item-selected

The ::menu-item-selected signal is emitted when the Gtk.MenuItem ::select signal is emitted on a Gtk.MenuItem belonging (directly or indirectly through submenus) to amtk_menu_shell.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Amtk.MenuShell(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Amtk.MenuShellClass

classmethod get_from_gtk_menu_shell(gtk_menu_shell)
Parameters:

gtk_menu_shell (Gtk.MenuShell) – a Gtk.MenuShell.

Returns:

the Amtk.MenuShell of gtk_menu_shell.

Return type:

Amtk.MenuShell

Returns the Amtk.MenuShell of gtk_menu_shell. The returned object is guaranteed to be the same for the lifetime of gtk_menu_shell.

New in version 2.0.

get_menu_shell()
Returns:

the Gtk.MenuShell of self.

Return type:

Gtk.MenuShell

New in version 2.0.

do_menu_item_deselected(menu_item) virtual
Parameters:

menu_item (Gtk.MenuItem) –

do_menu_item_selected(menu_item) virtual
Parameters:

menu_item (Gtk.MenuItem) –

Signal Details

Amtk.MenuShell.signals.menu_item_deselected(menu_shell, menu_item)
Signal Name:

menu-item-deselected

Flags:

RUN_FIRST

Parameters:

The ::menu-item-deselected signal is emitted when the Gtk.MenuItem ::deselect signal is emitted on a Gtk.MenuItem belonging (directly or indirectly through submenus) to amtk_menu_shell.

New in version 2.0.

Amtk.MenuShell.signals.menu_item_selected(menu_shell, menu_item)
Signal Name:

menu-item-selected

Flags:

RUN_FIRST

Parameters:

The ::menu-item-selected signal is emitted when the Gtk.MenuItem ::select signal is emitted on a Gtk.MenuItem belonging (directly or indirectly through submenus) to amtk_menu_shell.

New in version 2.0.

Property Details

Amtk.MenuShell.props.menu_shell
Name:

menu-shell

Type:

Gtk.MenuShell

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Gtk.MenuShell.

New in version 2.0.