GOffice.FontSel

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.FontChooser Gtk.FontChooser GObject.GInterface->Gtk.FontChooser 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.FontSel GOffice.FontSel Gtk.Box Gtk.Box Gtk.Box->GOffice.FontSel Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.FontChooser->GOffice.FontSel Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

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

Structs:

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

class

new ()

editable_enters (dialog)

get_color ()

get_font ()

get_font_desc ()

get_sample_attributes ()

set_color (c, is_default)

set_family (family)

set_font (font)

set_font_desc (desc)

set_sample_attributes (attrs)

set_sample_text (text)

set_script (script)

set_size (size)

set_strikethrough (strikethrough)

set_style (weight, style)

Virtual Methods

Inherited:

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

Properties

Inherited:

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

Name

Type

Flags

Short Description

color-default

int

r/w/co

The color to show for an unset color

color-group

GOffice.ColorGroup

r/w/co

The color group to use for the color picker

color-unset-text

str

r/w/co

The text to show for selecting no color

show-color

bool

r/w/co

Whether color is part of the GOffice.font being selected

show-script

bool

r/w/co

Whether subscript/superscript is part of the GOffice.font being selected

show-strikethrough

bool

r/w/co

Whether strikethrough is part of the GOffice.font being selected

show-style

bool

r/w/co

Whether style is part of the GOffice.font being selected

show-underline

bool

r/w/co

Whether underlining is part of the GOffice.font being selected

underline-picker

Gtk.Widget

r/w/co

The widget to use for picking underline type

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

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

Name

Short Description

font-changed

Fields

Inherited:

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

Class Details

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

Gtk.Box, Gtk.FontChooser

Abstract:

No

classmethod new()
Return type:

Gtk.Widget

editable_enters(dialog)
Parameters:

dialog (Gtk.Window) –

get_color()
Return type:

int

get_font()
Return type:

GOffice.Font

get_font_desc()
Returns:

a description of the GOffice.font set.

Return type:

Pango.FontDescription

get_sample_attributes()
Return type:

Pango.AttrList

set_color(c, is_default)
Parameters:
  • c (int) –

  • is_default (bool) –

set_family(family)
Parameters:

family (str) –

set_font(font)
Parameters:

font (GOffice.Font) –

set_font_desc(desc)
Parameters:

desc (Pango.FontDescription) –

set_sample_attributes(attrs)
Parameters:

attrs (Pango.AttrList) –

set_sample_text(text)
Parameters:

text (str) –

set_script(script)
Parameters:

script (GOffice.FontScript) –

set_size(size)
Parameters:

size (int) –

set_strikethrough(strikethrough)
Parameters:

strikethrough (bool) –

set_style(weight, style)
Parameters:

Signal Details

GOffice.FontSel.signals.font_changed(font_sel, object)
Signal Name:

font-changed

Flags:

RUN_LAST

Parameters:

Property Details

GOffice.FontSel.props.color_default
Name:

color-default

Type:

int

Default Value:

255

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The color to show for an unset color

GOffice.FontSel.props.color_group
Name:

color-group

Type:

GOffice.ColorGroup

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The color group to use for the color picker

GOffice.FontSel.props.color_unset_text
Name:

color-unset-text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The text to show for selecting no color

GOffice.FontSel.props.show_color
Name:

show-color

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether color is part of the GOffice.font being selected

GOffice.FontSel.props.show_script
Name:

show-script

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether subscript/superscript is part of the GOffice.font being selected

GOffice.FontSel.props.show_strikethrough
Name:

show-strikethrough

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether strikethrough is part of the GOffice.font being selected

GOffice.FontSel.props.show_style
Name:

show-style

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether style is part of the GOffice.font being selected

GOffice.FontSel.props.show_underline
Name:

show-underline

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether underlining is part of the GOffice.font being selected

GOffice.FontSel.props.underline_picker
Name:

underline-picker

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The widget to use for picking underline type