Constants

Details

Gtk.ACCESSIBLE_ATTRIBUTE_BACKGROUND = 'bg-color'

An attribute for the background color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_FAMILY = 'family-name'

An attribute for the font family name.

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_FOREGROUND = 'fg-color'

An attribute for the foreground color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE = 'overline'

An attribute for the overline style.

Possible values are:

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE]

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE = 'none'

The “none” overline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_OVERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE = 'single'

The “single” overline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_OVERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_SIZE = 'size'

An attribute for the font size, expressed in points.

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH = 'stretch'

An attribute for the font stretch type.

Possible values are:

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED]

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED = 'condensed'

The “condensed” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED = 'expanded'

The “expanded” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED = 'extra_condensed'

The “extra condensed” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED = 'extra_expanded'

The “extra expanded” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL = 'normal'

The “normal” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED = 'semi_condensed'

The “semi condensed” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED = 'semi_expanded'

The “semi expanded” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED = 'ultra_condensed'

The “ultra condensed” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED = 'ultra_expanded'

The “ultra expanded” stretch value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STRETCH].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH = 'strikethrough'

An attribute for strikethrough text.

Possible values are true or false.

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STYLE = 'style'

An attribute for the font style.

Possible values are:

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC]

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC = 'italic'

The “italic” style value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL = 'normal'

The “normal” style value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE = 'oblique'

The “oblique” style value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_STYLE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE = 'underline'

An attribute for the underline style.

Possible values are:

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR]

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE = 'double'

The “double” underline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR = 'error'

The “error” underline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE = 'none'

The “none” underline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE = 'single'

The “single” underline value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT = 'variant'

An attribute for the font variant.

Possible values are:

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE]

  • [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS]

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS = 'all-petite-caps'

The “all petite caps” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS = 'all-small-caps'

The “all small caps” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS = 'petite-caps'

The “petite caps” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS = 'small-caps'

The “small caps” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS = 'title-caps'

The “title caps” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE = 'unicase'

The “unicase” variant value for [const`Gtk`.ACCESSIBLE_ATTRIBUTE_VARIANT].

New in version 4.14.

Gtk.ACCESSIBLE_ATTRIBUTE_WEIGHT = 'weight'

An attribute for the font weight.

New in version 4.14.

Gtk.ACCESSIBLE_VALUE_UNDEFINED = -1

An undefined value. The accessible attribute is either unset, or its value is undefined.

Gtk.BINARY_AGE = 1612

Like [func`get_binary_age`], but from the headers used at application compile time, rather than from the library linked against at application run time.

Gtk.IM_MODULE_EXTENSION_POINT_NAME = 'gtk-im-module'

The default name of the extension point.

Gtk.INPUT_ERROR = -1

Constant to return from a signal handler for the ::input signal in case of conversion failure.

See [signal`Gtk`.SpinButton::input].

Gtk.INTERFACE_AGE = 12

Like [func`get_interface_age`], but from the headers used at application compile time, rather than from the library linked against at application run time.

Gtk.INVALID_LIST_POSITION = 4294967295

The value used to refer to a guaranteed invalid position in a GListModel.

This value may be returned from some functions, others may accept it as input. Its interpretation may differ for different functions.

Refer to each function’s documentation for if this value is allowed and what it does.

Gtk.LEVEL_BAR_OFFSET_FULL = 'full'

The name used for the stock full offset included by GtkLevelBar.

Gtk.LEVEL_BAR_OFFSET_HIGH = 'high'

The name used for the stock high offset included by GtkLevelBar.

Gtk.LEVEL_BAR_OFFSET_LOW = 'low'

The name used for the stock low offset included by GtkLevelBar.

Gtk.MAJOR_VERSION = 4

Like [func`get_major_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.

Gtk.MAX_COMPOSE_LEN = 7

Evaluates to the maximum length of a compose sequence.

This macro is longer used by GTK.

Gtk.MEDIA_FILE_EXTENSION_POINT_NAME = 'gtk-media-file'

The default extension point name for media file.

Gtk.MICRO_VERSION = 12

Like [func`get_micro_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.

Gtk.MINOR_VERSION = 16

Like [func`get_minor_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.

Gtk.PAPER_NAME_A3 = 'iso_a3'

Name for the A3 paper size.

Gtk.PAPER_NAME_A4 = 'iso_a4'

Name for the A4 paper size.

Gtk.PAPER_NAME_A5 = 'iso_a5'

Name for the A5 paper size.

Gtk.PAPER_NAME_B5 = 'iso_b5'

Name for the B5 paper size.

Gtk.PAPER_NAME_EXECUTIVE = 'na_executive'

Name for the Executive paper size.

Name for the Legal paper size.

Gtk.PAPER_NAME_LETTER = 'na_letter'

Name for the Letter paper size.

Gtk.PRINT_SETTINGS_COLLATE = 'collate'

The key used by the “Print to file” printer to store whether to collate the printed pages.

Gtk.PRINT_SETTINGS_DEFAULT_SOURCE = 'default-source'

The key used by the “Print to file” printer to store the default source.

Gtk.PRINT_SETTINGS_DITHER = 'dither'

The key used by the “Print to file” printer to store the dither used.

Gtk.PRINT_SETTINGS_DUPLEX = 'duplex'

The key used by the “Print to file” printer to store whether to print the output in duplex.

Gtk.PRINT_SETTINGS_FINISHINGS = 'finishings'

The key used by the “Print to file” printer to store the finishings.

Gtk.PRINT_SETTINGS_MEDIA_TYPE = 'media-type'

The key used by the “Print to file” printer to store the media type.

The set of media types is defined in PWG 5101.1-2002 PWG.

Gtk.PRINT_SETTINGS_NUMBER_UP = 'number-up'

The key used by the “Print to file” printer to store the number of pages per sheet.

Gtk.PRINT_SETTINGS_NUMBER_UP_LAYOUT = 'number-up-layout'

The key used by the “Print to file” printer to store the number of pages per sheet in number-up mode.

Gtk.PRINT_SETTINGS_N_COPIES = 'n-copies'

The key used by the “Print to file” printer to store the number of copies.

Gtk.PRINT_SETTINGS_ORIENTATION = 'orientation'

The key used by the “Print to file” printer to store the orientation.

Gtk.PRINT_SETTINGS_OUTPUT_BASENAME = 'output-basename'

The key used by the “Print to file” printer to store the file name of the output without the path to the directory and the file extension.

Gtk.PRINT_SETTINGS_OUTPUT_BIN = 'output-bin'

The key used by the “Print to file” printer to store the output bin.

Gtk.PRINT_SETTINGS_OUTPUT_DIR = 'output-dir'

The key used by the “Print to file” printer to store the directory to which the output should be written.

Gtk.PRINT_SETTINGS_OUTPUT_FILE_FORMAT = 'output-file-format'

The key used by the “Print to file” printer to store the format of the output. The supported values are “PS” and “PDF”.

Gtk.PRINT_SETTINGS_OUTPUT_URI = 'output-uri'

The key used by the “Print to file” printer to store the URI to which the output should be written. GTK itself supports only “file://” URIs.

Gtk.PRINT_SETTINGS_PAGE_RANGES = 'page-ranges'

The key used by the “Print to file” printer to store the array of page ranges to print.

Gtk.PRINT_SETTINGS_PAGE_SET = 'page-set'

The key used by the “Print to file” printer to store the set of pages to print.

Gtk.PRINT_SETTINGS_PAPER_FORMAT = 'paper-format'

The key used by the “Print to file” printer to store the page format.

Gtk.PRINT_SETTINGS_PAPER_HEIGHT = 'paper-height'

The key used by the “Print to file” printer to store the page height.

Gtk.PRINT_SETTINGS_PAPER_WIDTH = 'paper-width'

The key used by the “Print to file” printer to store the paper width.

Gtk.PRINT_SETTINGS_PRINTER = 'printer'

The key used by the “Print to file” printer to store the printer name.

Gtk.PRINT_SETTINGS_PRINTER_LPI = 'printer-lpi'

The key used by the “Print to file” printer to store the resolution in lines per inch.

Gtk.PRINT_SETTINGS_PRINT_PAGES = 'print-pages'

The key used by the “Print to file” printer to store which pages to print.

Gtk.PRINT_SETTINGS_QUALITY = 'quality'

The key used by the “Print to file” printer to store the printing quality.

Gtk.PRINT_SETTINGS_RESOLUTION = 'resolution'

The key used by the “Print to file” printer to store the resolution in DPI.

Gtk.PRINT_SETTINGS_RESOLUTION_X = 'resolution-x'

The key used by the “Print to file” printer to store the horizontal resolution in DPI.

Gtk.PRINT_SETTINGS_RESOLUTION_Y = 'resolution-y'

The key used by the “Print to file” printer to store the vertical resolution in DPI.

Gtk.PRINT_SETTINGS_REVERSE = 'reverse'

The key used by the “Print to file” printer to store whether to reverse the order of the printed pages.

Gtk.PRINT_SETTINGS_SCALE = 'scale'

The key used by the “Print to file” printer to store the scale.

Gtk.PRINT_SETTINGS_USE_COLOR = 'use-color'

The key used by the “Print to file” printer to store whether to print with colors.

Gtk.PRINT_SETTINGS_WIN32_DRIVER_EXTRA = 'win32-driver-extra'

The key used by the “Print to file” printer to store 32-bit Windows extra driver.

Gtk.PRINT_SETTINGS_WIN32_DRIVER_VERSION = 'win32-driver-version'

The key used by the “Print to file” printer to store the 32-bit Windows driver version.

Gtk.PRIORITY_RESIZE = 110

Use this priority for functionality related to size allocation.

It is used internally by GTK+ to compute the sizes of widgets. This priority is higher than Gdk.PRIORITY_REDRAW to avoid resizing a widget which was just redrawn.

Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION = 600

A priority that can be used when adding a GtkStyleProvider for application-specific style information.

Gtk.STYLE_PROVIDER_PRIORITY_FALLBACK = 1

The priority used for default style information that is used in the absence of themes.

Note that this is not very useful for providing default styling for custom style classes - themes are likely to override styling provided at this priority with catch-all * {...} rules.

Gtk.STYLE_PROVIDER_PRIORITY_SETTINGS = 400

The priority used for style information provided via GtkSettings.

This priority is higher than Gtk.STYLE_PROVIDER_PRIORITY_THEME to let settings override themes.

Gtk.STYLE_PROVIDER_PRIORITY_THEME = 200

The priority used for style information provided by themes.

Gtk.STYLE_PROVIDER_PRIORITY_USER = 800

The priority used for the style information from $XDG_CONFIG_HOME/gtk-4.0/gtk.css.

You should not use priorities higher than this, to give the user the last word.

Gtk.TEXT_VIEW_PRIORITY_VALIDATE = 125

The priority at which the text view validates onscreen lines in an idle job in the background.

Gtk.TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1

Uses the default sort function in a [iface`Gtk`.TreeSortable].

See also: [method`Gtk`.TreeSortable.set_sort_column_id]

Gtk.TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2

Disables sorting in a [iface`Gtk`.TreeSortable].

See also: [method`Gtk`.TreeSortable.set_sort_column_id]