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

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)

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