Gtk.TearoffMenuItem¶
| Subclasses: | None | 
|---|
Methods¶
| 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.TearoffMenuItemis a special- Gtk.MenuItemwhich is used to tear off and reattach its menu.- When its menu is shown normally, the - Gtk.TearoffMenuItemis 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.TearoffMenuItemis 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.TearoffMenuItemis 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.TearoffMenuItemis deprecated and should not be used in newly written code.
 
- 
classmethod