AyatanaIdo3.SwitchMenuItem

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget AyatanaIdo3.SwitchMenuItem AyatanaIdo3.SwitchMenuItem 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.CheckMenuItem Gtk.CheckMenuItem Gtk.CheckMenuItem->AyatanaIdo3.SwitchMenuItem Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.MenuItem->Gtk.CheckMenuItem Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.CheckMenuItem (10), 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 ()

class

new_from_menu_model (menuitem, actions)

get_content_area ()

set_icon (icon)

set_label (label)

Virtual Methods

Inherited:

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

Properties

Inherited:

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

Style Properties

Inherited:

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

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Gtk.CheckMenuItem

r

Class Details

class AyatanaIdo3.SwitchMenuItem(*args, **kwargs)
Bases:

Gtk.CheckMenuItem

Abstract:

No

Structure:

AyatanaIdo3.SwitchMenuItemClass

classmethod new()
Returns:

a new AyatanaIdo3.SwitchMenuItem.

Return type:

Gtk.Widget

Creates a new AyatanaIdo3.SwitchMenuItem

classmethod new_from_menu_model(menuitem, actions)
Parameters:
Return type:

Gtk.MenuItem

get_content_area()
Returns:

The Gtk.Container to add additional widgets into.

Return type:

Gtk.Container

Get the Gtk.Container to add additional widgets into.

This function is dperecated.

set_icon(icon)
Parameters:

icon (Gio.Icon or None) – a Gio.Icon

Set the icon of self to icon.

set_label(label)
Parameters:

label (str) – a string to set as the label of self

Set the label of self to label.