Dazzle.Tab

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.Bin Dazzle.Bin Dazzle.Tab Dazzle.Tab Dazzle.Bin->Dazzle.Tab GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Actionable Gtk.Actionable GObject.GInterface->Gtk.Actionable 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.Actionable->Dazzle.Tab Gtk.Bin Gtk.Bin Gtk.Bin->Dazzle.Bin Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Dazzle.Bin (1), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Actionable (5)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

get_active ()

get_can_close ()

get_edge ()

get_icon_name ()

get_style ()

get_title ()

get_widget ()

set_active (active)

set_can_close (can_close)

set_edge (edge)

set_gicon (gicon)

set_icon_name (icon_name)

set_style (style)

set_title (title)

set_widget (widget)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2)

Name

Type

Flags

Short Description

active

bool

r/w/en

If the tab is currently active

can-close

bool

r/w/en

If the tab widget can be closed

edge

Gtk.PositionType

r/w/en

Edge

title

str

r/w

Title

widget

Gtk.Widget

r/w/en

The widget the tab represents

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

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

Name

Short Description

clicked

Fields

Inherited:

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

Class Details

class Dazzle.Tab(**kwargs)
Bases:

Dazzle.Bin, Gtk.Actionable

Abstract:

No

Structure:

Dazzle.TabClass

get_active()
Return type:

bool

get_can_close()
Return type:

bool

get_edge()
Return type:

Gtk.PositionType

get_icon_name()
Return type:

str

get_style()
Return type:

Dazzle.TabStyle

get_title()
Return type:

str

get_widget()
Returns:

A Gtk.Widget or None.

Return type:

Gtk.Widget or None

set_active(active)
Parameters:

active (bool) –

set_can_close(can_close)
Parameters:

can_close (bool) –

set_edge(edge)
Parameters:

edge (Gtk.PositionType) –

set_gicon(gicon)
Parameters:

gicon (Gio.Icon) –

set_icon_name(icon_name)
Parameters:

icon_name (str) –

set_style(style)
Parameters:

style (Dazzle.TabStyle) –

set_title(title)
Parameters:

title (str) –

set_widget(widget)
Parameters:

widget (Gtk.Widget) –

Signal Details

Dazzle.Tab.signals.clicked(tab)
Signal Name:

clicked

Flags:

RUN_LAST

Parameters:

tab (Dazzle.Tab) – The object which received the signal

Property Details

Dazzle.Tab.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If the tab is currently active

Dazzle.Tab.props.can_close
Name:

can-close

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If the tab widget can be closed

Dazzle.Tab.props.edge
Name:

edge

Type:

Gtk.PositionType

Default Value:

Gtk.PositionType.TOP

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Edge

Dazzle.Tab.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Title

Dazzle.Tab.props.widget
Name:

widget

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The widget the tab represents