Gtk.TearoffMenuItem¶
- 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 |
|
Virtual Methods¶
Properties¶
Style Properties¶
- Inherited:
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 |
r |
Class Details¶
- class Gtk.TearoffMenuItem(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.TearoffMenuItem
is a specialGtk.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:
Creates a new
Gtk.TearoffMenuItem
.Deprecated since version 3.4:
Gtk.TearoffMenuItem
is deprecated and should not be used in newly written code.