GOffice.ComboBox

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GOffice.ComboBox GOffice.ComboBox Gtk.Box Gtk.Box Gtk.Box->GOffice.ComboBox Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

GOffice.CalendarButton, GOffice.ComboColor, GOffice.ComboPixmaps

Methods

Inherited:

Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

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

construct (display_widget, popdown_container, popdown_focus)

get_pos (x, y)

get_title ()

popup_display ()

popup_hide ()

set_display (display_widget)

set_relief (relief)

set_tearable (tearable)

set_title (title)

set_tooltip (tips, text, priv_text)

Virtual Methods

Inherited:

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

do_pop_down_done (w)

do_set_title (title)

Properties

Inherited:

Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

show-arrow

bool

r/w

Whether to show an arrow for the combo

title

str

r/w

The combo box’s title

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Name

Type

Default

Flags

Short Description

add-tearoffs

bool

False

r

Whether dropdowns should have a tearoff menu item

Signals

Inherited:

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

Name

Short Description

pop-down-done

Fields

Inherited:

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

Name

Type

Access

Description

hbox

Gtk.Box

r

Class Details

class GOffice.ComboBox(*args, **kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

GOffice.ComboBoxClass

construct(display_widget, popdown_container, popdown_focus)
Parameters:
get_pos(x, y)
Parameters:
get_title()
Return type:

str

popup_display()
popup_hide()

Hides popup, but not when it is torn off. This is the external interface - for subclasses and apps which expect a regular combo which doesn’t do tearoffs.

set_display(display_widget)
Parameters:

display_widget (Gtk.Widget) – The widget to be displayed

Sets the displayed widget for the combo_box to be display_widget

set_relief(relief)
Parameters:

relief (Gtk.ReliefStyle) –

set_tearable(tearable)
Parameters:

tearable (bool) – whether to allow the self to be tearable

controls whether the combo box’s pop up widget can be torn off.

set_title(title)
Parameters:

title (str) – Title

Set a title to display over the tearoff window.

FIXME:

This should really change the title even when the popup is already torn off. I guess the tearoff window could attach a listener to title change or something.

set_tooltip(tips, text, priv_text)
Parameters:
do_pop_down_done(w) virtual
Parameters:

w (Gtk.Widget) –

Return type:

bool

do_set_title(title) virtual
Parameters:

title (str) – Title

Set a title to display over the tearoff window.

FIXME:

This should really change the title even when the popup is already torn off. I guess the tearoff window could attach a listener to title change or something.

Signal Details

GOffice.ComboBox.signals.pop_down_done(combo_box, object)
Signal Name:

pop-down-done

Flags:

RUN_LAST

Parameters:
Return type:

bool

Property Details

GOffice.ComboBox.props.show_arrow
Name:

show-arrow

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

Whether to show an arrow for the combo

GOffice.ComboBox.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The combo box’s title