Gdl.Switcher¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Notebook (45), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Switcher buttons style |
||
r/w |
Whether the tab is reorderable by user action |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gtk.Notebook (10), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Fields¶
- Inherited:
Gtk.Notebook (10), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gdl.Switcher(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
The newly created
Gdl.Switcher
- Return type:
Creates a new notebook widget with no pages.
- insert_page(page, tab_widget, label, tooltips, stock_id, pixbuf_icon, position)¶
- Parameters:
page (
Gtk.Widget
) – The page to add to the switchertab_widget (
Gtk.Widget
) – The to add to the switcherlabel (
str
) – The label text for the buttontooltips (
str
) – The tooltip for the buttonstock_id (
str
) – The stock ID for the button iconpixbuf_icon (
GdkPixbuf.Pixbuf
) – The pixbuf to use for the button iconposition (
int
) – The position at which to create the page
- Returns:
The index (starting from 0) of the appended page in the notebook, or -1 if function fails
- Return type:
Adds a page to a
Gdl.Switcher
. A button is created in the switcher, with its icon taken preferentially from the stock_id parameter. If this parameter isNone
, then the pixbuf_icon parameter is used. Failing that, theGtk.STOCK_NEW
stock icon is used. The text label for the button is specified using the label parameter. If it isNone
then a default incrementally numbered label is used instead.
Property Details¶
- Gdl.Switcher.props.switcher_style¶
- Name:
switcher-style
- Type:
- Default Value:
- Flags:
Switcher buttons style