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

Style Properties

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

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.