Gtk.TearoffMenuItem

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 Gtk.MenuItem Gtk.MenuItem Gtk.Actionable->Gtk.MenuItem Gtk.Activatable->Gtk.MenuItem Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.MenuItem Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.TearoffMenuItem Gtk.TearoffMenuItem Gtk.MenuItem->Gtk.TearoffMenuItem Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.MenuItem (20), 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 ()

Virtual Methods

Inherited:

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

Properties

Inherited:

Gtk.MenuItem (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2), Gtk.Activatable (2)

Style Properties

Inherited:

Gtk.MenuItem (6), Gtk.Widget (17)

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

menu_item

Gtk.MenuItem

r

Class Details

class Gtk.TearoffMenuItem(*args, **kwargs)
Bases:

Gtk.MenuItem

Abstract:

No

Structure:

Gtk.TearoffMenuItemClass

A Gtk.TearoffMenuItem is a special Gtk.MenuItem which is used to tear off and reattach its menu.

When its menu is shown normally, the Gtk.TearoffMenuItem is drawn as a dotted line indicating that the menu can be torn off. Activating it causes its menu to be torn off and displayed in its own window as a tearoff menu.

When its menu is shown as a tearoff menu, the Gtk.TearoffMenuItem is drawn as a dotted line which has a left pointing arrow graphic indicating that the tearoff menu can be reattached. Activating it will erase the tearoff menu window.

Gtk.TearoffMenuItem is deprecated and should not be used in newly written code. Menus are not meant to be torn around.

classmethod new()[source]
Returns:

a new Gtk.TearoffMenuItem.

Return type:

Gtk.Widget

Creates a new Gtk.TearoffMenuItem.

Deprecated since version 3.4: Gtk.TearoffMenuItem is deprecated and should not be used in newly written code.