gtk Constantsthe built-in constants of the gtk moduleSynopsisDescriptionGTK Accel Flags ConstantsThe Accel Flags constants are a set of bit-flags that specify
characteristics of the accelerator.gtk.ACCEL_VISIBLEif set, the accelerator is visible in a labelgtk.ACCEL_LOCKEDIf set the accelerator cannot be changed by the
user.gtk.ACCEL_MASKA mask for the Accel FlagsGTK Anchor Type ConstantsThe Anchor Type constants specify the anchor point of a
widget.gtk.ANCHOR_CENTERgtk.ANCHOR_NORTHgtk.ANCHOR_NORTH_WESTgtk.ANCHOR_NORTH_EASTgtk.ANCHOR_SOUTHgtk.ANCHOR_SOUTH_WESTgtk.ANCHOR_SOUTH_EASTgtk.ANCHOR_WESTgtk.ANCHOR_EAST,gtk.ANCHOR_NSame as gtk.ANCHOR_NORTHgtk.ANCHOR_NWSame as gtk.ANCHOR_NORTH_WESTgtk.ANCHOR_NESame as gtk.ANCHOR_NORTH_EASTgtk.ANCHOR_SSame as gtk.ANCHOR_SOUTHgtk.ANCHOR_SWSame as gtk.ANCHOR_SOUTH_WESTgtk.ANCHOR_SESame as gtk.ANCHOR_SOUTH_EASTgtk.ANCHOR_WSame as gtk.ANCHOR_WESTgtk.ANCHOR_ESame as gtk.ANCHOR_EASTGTK Arrow Type ConstantsThe Arrow Type constants specify the direction a gtk.Arrow should
point.gtk.ARROW_UPRepresents an upward pointing arrow.gtk.ARROW_DOWNRepresents a downward pointing arrow.gtk.ARROW_LEFTRepresents a left pointing arrow.gtk.ARROW_RIGHTRepresents a right pointing arrow.GTK Assistant Page Type ConstantsThe Assistant Page Type constants are used to determine the page
role inside the gtk.Assistant. It's
used to handle buttons sensitivity and visibility.An assistant needs to end its page flow with a page of type
gtk.ASSISTANT_PAGE_CONFIRM or
gtk.ASSISTANT_PAGE_SUMMARY to be correct.gtk.ASSISTANT_PAGE_CONTENTThe page has regular contents.gtk.ASSISTANT_PAGE_INTROThe page contains an introduction to the assistant
task.gtk.ASSISTANT_PAGE_CONFIRMThe page lets the user confirm or deny the
changes.gtk.ASSISTANT_PAGE_SUMMARYThe page informs the user of the changes done.gtk.ASSISTANT_PAGE_PROGRESSUsed for tasks that take a long time to complete,
blocks the assistant until the page is marked as
complete.GTK Attach Flag Options ConstantsThe Attach Flag Options constants are a set of bit-flags that
specify the expansion properties that a widget will have when it (or its
parent) is resized.gtk.EXPANDThe widget should expand to take up any extra space in
its container that has been allocated.gtk.SHRINKThe widget should shrink as and when
possible.gtk.FILLThe widget should fill the space allocated to
it.GTK ButtonBox Style ConstantsThe ButtonBox Style constants specify the style that a gtk.ButtonBox
uses to layout the buttons it contains. (See also: gtk.VButtonBox
and gtk.HButtonBox).gtk.BUTTONBOX_DEFAULT_STYLEDefault packing.gtk.BUTTONBOX_SPREADButtons are evenly spread across the ButtonBox.gtk.BUTTONBOX_EDGEButtons are placed at the edges of the
ButtonBox.gtk.BUTTONBOX_STARTButtons are grouped toward the start of box, (on the
left for a HBox, or the top for a VBox).gtk.BUTTONBOX_ENDButtons are grouped toward the end of a box, (on the
right for a HBox, or the bottom for a VBox).GTK Buttons Type ConstantsThe Buttons Type constants specify the pre-defined sets of
buttons for the dialog. If none of these choices are appropriate, simply use
gtk.BUTTONS_NONE then call the add_buttons()
method.gtk.BUTTONS_NONEno buttons at allgtk.BUTTONS_OKan OK buttongtk.BUTTONS_CLOSEa Close buttongtk.BUTTONS_CANCELa Cancel buttongtk.BUTTONS_YES_NOYes and No buttonsgtk.BUTTONS_OK_CANCELOK and Cancel buttonsGTK Calendar Display Options ConstantsThe Calendar Display Options constants are a set of bit-flags
that specify the display and behavior of a gtk.Calendar.gtk.CALENDAR_SHOW_HEADINGSpecifies that the month and year should be
displayed.gtk.CALENDAR_SHOW_DAY_NAMESSpecifies that three letter day descriptions should be
present.gtk.CALENDAR_NO_MONTH_CHANGEPrevents the user from switching months with the
calendar.gtk.CALENDAR_SHOW_WEEK_NUMBERSDisplays each week numbers of the current year, down
the left side of the calendar.gtk.CALENDAR_WEEK_START_MONDAYSince GTK+ 2.4, this option is deprecated and ignored
by GTK+. The information on which day the calendar week starts
is derived from the locale.GTK CellRenderer Mode ConstantsThe CellRenderer Mode constants specify how the user can
interact with a particular cell.gtk.CELL_RENDERER_MODE_INERTThe cell is just for display and cannot be interacted
with. Note that this doesn't mean that e.g. the row being drawn can't be
selected -- just that a particular element of it cannot be individually
modified.gtk.CELL_RENDERER_MODE_ACTIVATABLEThe cell can be clicked.gtk.CELL_RENDERER_MODE_EDITABLEThe cell can be edited or otherwise modified.GTK CellRenderer State ConstantsThe CellRenderer State constants specify how a cell is to be
rendered.gtk.CELL_RENDERER_SELECTEDThe cell is currently selected, and probably has a
selection colored background to render to.gtk.CELL_RENDERER_PRELITThe mouse is hovering over the cell.gtk.CELL_RENDERER_INSENSITIVEThe cell is drawn in an insensitive mannergtk.CELL_RENDERER_SORTEDThe cell is in a sorted rowgtk.CELL_RENDERER_FOCUSEDThe cell has the focus.GTK CellRendererAccel Mode ConstantsThe CellRendererAccel Mode constants specify if the edited
accelerators are GTK+ accelerators. If they are, consumed modifiers
are suppressed, only accelerators accepted by GTK+ are allowed, and
the accelerators are rendered in the same way as they are in
menus.gtk.CELL_RENDERER_ACCEL_MODE_GTKOnly accelerators accepted by GTK+ are allowed.gtk.CELL_RENDERER_ACCEL_MODE_OTHERAny accelerators are allowed.GTK Corner Type ConstantsThe Corner Type constants specify the corner a child widget
should be placed in when packed into a gtk.ScrolledWindow. This
is effectively the opposite of where the scroll bars are placed.gtk.CORNER_TOP_LEFTPlace the scrollbars on the right and bottom of the
widget (default behavior).gtk.CORNER_BOTTOM_LEFTPlace the scrollbars on the top and right of the
widget.gtk.CORNER_TOP_RIGHTPlace the scrollbars on the left and bottom of the
widget.gtk.CORNER_BOTTOM_RIGHTPlace the scrollbars on the top and left of the
widget.GTK Curve Type ConstantsThe Curve Type constants specify the type of curve to use for a
gtk.Curve.gtk.CURVE_TYPE_LINEARLinear interpolationgtk.CURVE_TYPE_SPLINESpline interpolationgtk.CURVE_TYPE_FREEFree form curveGTK Debug Flag ConstantsThe Debug Flag constants are a set of bit-flags that specify the
debug options.gtk.DEBUG_MISCgtk.DEBUG_PLUGSOCKETgtk.DEBUG_TEXTgtk.DEBUG_TREEgtk.DEBUG_UPDATESgtk.DEBUG_KEYBINDINGSgtk.DEBUG_MULTIHEADGTK Delete Type ConstantsThe Delete Type constants specify the deletion type.gtk.DELETE_CHARSDelete a character at the cursorgtk.DELETE_WORD_ENDSDelete from the cursor to the end of a wordgtk.DELETE_WORDSDelete a number of wordsgtk.DELETE_DISPLAY_LINESDelete a single line at the cursorgtk.DELETE_DISPLAY_LINE_ENDS,Delete from the cursor to the end of the line.gtk.DELETE_PARAGRAPH_ENDSDelete from the cursor to a paragraph end (usually to
the period)gtk.DELETE_PARAGRAPHSDelete several complete paragraphs at the cursor gtk.DELETE_WHITESPACEDelete the whitespace at the cursor.GTK Dest Defaults ConstantsThe Dest Defaults constants are a set of bit-flags that specify
the various types of action that will be taken on behalf of the user for a
drag destination site.gtk.DEST_DEFAULT_MOTIONIf set for a widget, during a drag over this widget
will check if the drag matches this widget's list of possible targets and
actions. The gtk.gdk.DragContext.drag_status()
method will be called as appropriate.gtk.DEST_DEFAULT_HIGHLIGHT If set for a widget, draw a highlight on this widget
as long as a drag is over this widget and the widget drag format and action
are acceptable.gtk.DEST_DEFAULT_DROPIf set for a widget, when a drop occurs, check if the
drag matches this widget's list of possible targets and actions. If so, call
the gtk.Widget.drag_get_data()
method on behalf of the widget. Whether or not the drop is successful, call
the gtk.gdk.DragContext.finish()
method. If the action was a move, then if the drag was successful, then
True will be passed for the delete parameter to the gtk.gdk.DragContext.finish()
method.gtk.DEST_DEFAULT_ALLIf set, specifies that all default actions should be
taken.GTK Dialog Flag ConstantsThe Dialog Flag constants are a set of bit-flags that specify
characteristics of a dialog.gtk.DIALOG_MODALIf set, the dialog grabs all keyboard
eventsgtk.DIALOG_DESTROY_WITH_PARENTIf set, the dialog is destroyed when its parent
is.gtk.DIALOG_NO_SEPARATORIf set, there is no separator bar above the
buttons.GTK Direction Type ConstantsThe Direction Type constants specify a direction for moving a
cursor or focus.gtk.DIR_TAB_FORWARDTab forward.gtk.DIR_TAB_BACKWARDTab backward.gtk.DIR_UPUp.gtk.DIR_DOWNDown.gtk.DIR_LEFTLeft.gtk.DIR_RIGHTRight.GTK Expander Style ConstantsThe Expander Style constants specify the style of the expanders
drawn by a gtk.TreeViewgtk.EXPANDER_COLLAPSEDThe style used for a collapsed subtree.gtk.EXPANDER_SEMI_COLLAPSEDIntermediate style used during animation.gtk.EXPANDER_SEMI_EXPANDEDIntermediate style used during animation.gtk.EXPANDER_EXPANDEDThe style used for an expanded subtree.GTK FileChooser Action ConstantsThe FileChooser Action constants specify the mode of a gtk.FileChooser
i.e. whether it is being used to open existing files or to save to a
possibly new file.gtk.FILE_CHOOSER_ACTION_OPENIndicates open mode. The file chooser will only let the
user pick an existing file.gtk.FILE_CHOOSER_ACTION_SAVEIndicates save mode. The file chooser will let the user
pick an existing file, or type in a new filename.gtk.FILE_CHOOSER_ACTION_SELECT_FOLDERIndicates an Open mode for selecting folders. The file
chooser will let the user pick an existing folder.gtk.FILE_CHOOSER_ACTION_CREATE_FOLDERIndicates a mode for creating a new folder. The file
chooser will let the user name an existing or new
folder.GTK FileChooser Confirmation ConstantsThese constants are available in PyGTK 2.8 and above.The FileChooser Confirmation constants are used to specify the
return value of a gtk.FileChooser
"confirm-overwrite"
signal handler. This value determines whether the file chooser will present
the stock confirmation dialog, accept the user's choice of a filename, or
let the user choose another filename.gtk.FILE_CHOOSER_CONFIRMATION_CONFIRMThe file chooser will present its stock dialog to
confirm overwriting an existing file.gtk.FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAMEThe file chooser will terminate and accept the user's
choice of a file name.gtk.FILE_CHOOSER_CONFIRMATION_SELECT_AGAINThe file chooser will continue running, allowing
the user to select another file name.GTK FileChooser Error ConstantsThe FileChooser Error constants specify the various errors that
can occur while calling gtk.FileChooser
functions.gtk.FILE_CHOOSER_ERROR_NONEXISTENTIndicates that a file does not exist.gtk.FILE_CHOOSER_ERROR_BAD_FILENAMEIndicates a malformed filename.GTK FileFilter Flags ConstantsThe FileFilter Flags constants are a set of bit-flags that
specify the file types to filter the files against.gtk.FILE_FILTER_FILENAMEThe full pathname of the file e.g. /tmp/junk.gtk.FILE_FILTER_URIThe full URI of the file
e.g. file:///tmp/junk.gtk.FILE_FILTER_DISPLAY_NAMEThe simple name of the file e.g. junk.gtk.FILE_FILTER_MIME_TYPEThe MIME type of the file e.g. text/html.GTK Icon Lookup Flags ConstantsThe Icon Lookup Flags constants are a set of bit-flags that
specify options for the gtk.IconTheme.lookup_icon()
methodgtk.ICON_LOOKUP_NO_SVG Never return SVG (Scalable Vector Graphics) icons,
even if gdk-pixbuf supports them. Cannot be used together with
gtk.ICON_LOOKUP_FORCE_SVG.gtk.ICON_LOOKUP_FORCE_SVGReturn SVG icons, even if gdk-pixbuf doesn't support
them. Cannot be used together with
gtk.ICON_LOOKUP_NO_SVG.gtk.ICON_LOOKUP_USE_BUILTINWhen passed to the gtk.IconTheme.lookup_icon()
method includes builtin icons as well as files. For a builtin icon, the
gtk.IconInfo.get_filename()
method returns None and you need to call the gtk.IconInfo.get_builtin_pixbuf()
method.GTK Icon Size ConstantsThe Icon Size constants specify the pre-defined sizes of icons
for various application uses.gtk.ICON_SIZE_INVALIDgtk.ICON_SIZE_MENUgtk.ICON_SIZE_SMALL_TOOLBARgtk.ICON_SIZE_LARGE_TOOLBARgtk.ICON_SIZE_BUTTONgtk.ICON_SIZE_DNDgtk.ICON_SIZE_DIALOGGTK IconTheme Error ConstantsThe IconTheme Error constants specify error codes for gtk.IconTheme
operations.gtk.ICON_THEME_NOT_FOUNDThe icon specified does not exist in the
themegtk.ICON_THEME_FAILEDAn unspecified error occurred.GTK IconView Drop Position ConstantsThe IconView Drop Position constants specify the location relative to the receiving item where the drop should take place.gtk.ICON_VIEW_NO_DROPgtk.ICON_VIEW_DROP_INTOgtk.ICON_VIEW_DROP_LEFTgtk.ICON_VIEW_DROP_RIGHTgtk.ICON_VIEW_DROP_ABOVEgtk.ICON_VIEW_DROP_BELOWGTK IM Pre-edit Style ConstantsThe IM Pre-edit Style constants specify the style of input method
pre-edit display.gtk.IM_PREEDIT_NOTHINGgtk.IM_PREEDIT_CALLBACKgtk.IM_PREEDIT_NONEGTK IM Status Style ConstantsThe IM Status Style constants specify the style of input method
display.gtk.IM_STATUS_NOTHINGgtk.IM_STATUS_CALLBACKgtk.IM_STATUS_NONEGTK Image Type ConstantsThe Image Type constants specify the type of image in a gtk.Image.gtk.IMAGE_EMPTYThere is no image displayed by the widgetgtk.IMAGE_PIXMAPThe widget contains a gtk.gdk.Pixmapgtk.IMAGE_IMAGEThe widget contains a gtk.gdk.Imagegtk.IMAGE_PIXBUFThe widget contains a gtk.gdk.Pixbufgtk.IMAGE_STOCKThe widget contains a stock icon name (see the Stock Items reference)gtk.IMAGE_ICON_SETThe widget contains a gtk.IconSetgtk.IMAGE_ANIMATIONThe widget contains a gtk.gdk.PixbufAnimationGTK Justification ConstantsThe Justification constants specify the justification of the
text inside a gtk.Label
widget. (See also gtk.Alignment).gtk.JUSTIFY_LEFTThe text is placed at the left edge of the
label.gtk.JUSTIFY_RIGHTThe text is placed at the right edge of the
label.gtk.JUSTIFY_CENTERThe text is placed in the center of the
label.gtk.JUSTIFY_FILLThe text is placed is distributed across the
label.GTK Menu Direction Type ConstantsThe Menu Direction Type constants specify directional movements
within a menu.gtk.MENU_DIR_PARENTTo the parent menu shell.gtk.MENU_DIR_CHILDTo the submenu, if any, associated with the item.gtk.MENU_DIR_NEXTTo the next menu item.gtk.MENU_DIR_PREVTo the previous menu item.GTK Message Type ConstantsThe Message Type constants specify the type of message being
displayed in the message dialog.gtk.MESSAGE_INFOInformational messagegtk.MESSAGE_WARNINGNonfatal warning messagegtk.MESSAGE_QUESTIONQuestion requiring a choicegtk.MESSAGE_ERRORFatal error messageGTK Metric Type ConstantsThe Metric Type constants specify the metric used by a gtk.Ruler.gtk.PIXELSPixels.gtk.INCHESInches.gtk.CENTIMETERSCentimeters.GTK Movement Step ConstantsThe Movement Step constants specify the steps used in movement
through text.gtk.MOVEMENT_LOGICAL_POSITIONSmove by graphemesgtk.MOVEMENT_VISUAL_POSITIONSmove by graphemesgtk.MOVEMENT_WORDSmove by wordsgtk.MOVEMENT_DISPLAY_LINESmove by lines(wrapped lines)gtk.MOVEMENT_DISPLAY_LINE_ENDSmove to line ends(wrapped lines)gtk.MOVEMENT_PARAGRAPHSmove by paragraphs(newline-ended lines)gtk.MOVEMENT_PARAGRAPH_ENDSmove to ends of a paragraphgtk.MOVEMENT_PAGESmove by pagesgtk.MOVEMENT_BUFFER_ENDSmove to ends of the bufferGTK Notebook Tab ConstantsThe Notebook Tab constants specify the tab position to receive
focus.gtk.NOTEBOOK_TAB_FIRSTThe first gtk.Notebook
tabgtk.NOTEBOOK_TAB_LASTThe last gtk.Notebook
tabGTK Number Up Layout ConstantsUsed to determine the layout of pages on a sheet when printing
multiple pages per sheet.gtk.NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOMgtk.NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOPgtk.NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOMgtk.NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOPgtk.NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHTgtk.NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFTgtk.NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHTgtk.NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFTGTK Object Flags ConstantsThe Object Flags constants are a set of bit-flags that specify
the state of the gtk.Object.gtk.IN_DESTRUCTIONThe object is currently being destroyed. This is used
internally to prevent reinvocations during
destruction.gtk.FLOATINGThe object is orphaned.GTK Orientation ConstantsThe Orientation constants specify the orientation of widgets
which can be switched between horizontal and vertical orientation on the
fly, like gtk.Toolbar.gtk.ORIENTATION_HORIZONTALThe widget is in horizontal orientation.gtk.ORIENTATION_VERTICALThe widget is in vertical orientation. GTK Pack Direction ConstantsThe Pack Direction constants specify the arrangement of gtk.MenuItems in a
gtk.MenuBar
or in a child gtk.MenuItem of a
menubar.gtk.PACK_DIRECTION_LTRPack left to rightgtk.PACK_DIRECTION_RTLPack right to leftgtk.PACK_DIRECTION_TTBPack top to bottomgtk.PACK_DIRECTION_BTTPack bottom to topGTK Pack Type ConstantsThe Pack Type constants specify the packing location gtk.Box children. (See:
gtk.VBox, gtk.HBox, and gtk.ButtonBox).gtk.PACK_STARTThe child is packed into the start of the boxgtk.PACK_ENDThe child is packed into the end of the boxGTK Page Orientation ConstantsThe Page Orientation constants specify the orientation of a
page.gtk.PAGE_ORIENTATION_PORTRAITgtk.PAGE_ORIENTATION_LANDSCAPEgtk.PAGE_ORIENTATION_REVERSE_PORTRAITgtk.PAGE_ORIENTATION_REVERSE_LANDSCAPEGTK Page Set ConstantsThe Page Set constants specify the set of
pages to print.gtk.PAGE_SET_ALLprint all pagesgtk.PAGE_SET_EVENprint even pages onlygtk.PAGE_SET_ODDprint odd pages onlyGTK Papaer Name ConstantsThe Paper Name constants specify the common standard sizes of
paper as a string.gtk.PAPER_NAME_A3Name for the A4 paper size.gtk.PAPER_NAME_A4Name for the A4 paper size.gtk.PAPER_NAME_A5Name for the A5 paper size.gtk.PAPER_NAME_B5Name for the B5 paper size.gtk.PAPER_NAME_LETTERName for the Letter paper size.gtk.PAPER_NAME_EXECUTIVEName for the Executive paper size.gtk.Name for the Legal paper size.GTK Path Priority Type ConstantsThe Path Priority Type constants are a set of bit-flags that
specify the priority of path lookup.gtk.PATH_PRIO_LOWESTgtk.PATH_PRIO_GTKgtk.PATH_PRIO_APPLICATIONgtk.PATH_PRIO_THEMEgtk.PATH_PRIO_RCgtk.PATH_PRIO_HIGHESTGTK Path Type ConstantsThe Path Type constants specify gtk.PATH_WIDGETgtk.PATH_WIDGET_CLASSgtk.PATH_CLASSGTK Policy Type ConstantsThe Policy Type constants specify when a scroll bar will be
visible.gtk.POLICY_ALWAYSthe scrollbar is always presentgtk.POLICY_AUTOMATICthe scrollbar is present only if needed i.e. the
contents are larger than the windowgtk.POLICY_NEVERthe scrollbar is never presentGTK Position Type ConstantsThe Position Type constants specify gtk.POS_LEFTThe feature is at the left edge.gtk.POS_RIGHTThe feature is at the right edge.gtk.POS_TOPThe feature is at the top edge.gtk.POS_BOTTOMThe feature is at the bottom edgeGTK Print Duplex ConstantsThe Print Status constants specify how the output pages should
be duplexed:gtk.PRINT_DUPLEX_SIMPLEXone page per sheet i.e. no duplexinggtk.PRINT_DUPLEX_HORIZONTALtwo pages per sheet horizontally duplexedgtk.PRINT_DUPLEX_VERTICALtwo pages per sheet vertically duplexedGTK Print Error ConstantsThe Print Error constants specify the type of printing
error:gtk.PRINT_ERROR_GENERALgtk.PRINT_ERROR_INTERNAL_ERRORgtk.PRINT_ERROR_NOMEMGTK Print Pages ConstantsThe Print Pages constants specify the set that should be
printed:gtk.PRINT_PAGES_ALLprint all pagesgtk.PRINT_PAGES_CURRENTprint the current pagegtk.PRINT_PAGES_RANGESprint the specified ranges of pagesGTK Print Operation Action ConstantsThe Print Operation Action constants specify the print operation
to be performed:gtk.PRINT_OPERATION_ACTION_PRINT_DIALOGShow the print dialog.gtk.PRINT_OPERATION_ACTION_PRINTStart to print without showing the print dialog, based
on the current print settings.gtk.PRINT_OPERATION_ACTION_PREVIEWShow the print preview.gtk.PRINT_OPERATION_ACTION_EXPORTExport to a file. This requires the "export-filename"
property to be set.GTK Print Operation Result ConstantsThe Print Operation Result constants specify the result of the
print operation as returned by the gtk.PrintOperation.run())
method:gtk.PRINT_OPERATION_RESULT_ERRORAn error has occured.gtk.PRINT_OPERATION_RESULT_APPLYThe print settings should be stored.gtk.PRINT_OPERATION_RESULT_CANCELThe print operation has been canceled, the print
settings should not be stored.gtk.PRINT_OPERATION_RESULT_IN_PROGRESSThe print operation is complete yet. This value will
only be returned when running asynchronously.GTK Print Quality ConstantsThe Print Quality constants specify the quality that should be
used when printing the output pages:gtk.PRINT_QUALITY_LOWlow qualitygtk.PRINT_QUALITY_NORMALnormal qualitygtk.PRINT_QUALITY_HIGHhigh qualitygtk.PRINT_QUALITY_DRAFTdraft qualityGTK Print Status ConstantsThe Print Status constants specify gtk.PRINT_STATUS_INITIALThe printing has not started yet; this status is set
initially, and while the print dialog is shown.gtk.PRINT_STATUS_PREPARINGThis status is set while the "begin-print" signal is
emitted and during pagination.gtk.PRINT_STATUS_GENERATING_DATAThis status is set while the pages are being
rendered.gtk.PRINT_STATUS_SENDING_DATAThe print job is being sent off to the
printer.gtk.PRINT_STATUS_PENDINGThe print job has been sent to the printer, but is not
printed for some reason, e.g. the printer may be
stopped.gtk.PRINT_STATUS_PENDING_ISSUESome problem has occurred during printing, e.g. a paper
jam.gtk.PRINT_STATUS_PRINTINGThe printer is processing the print job.gtk.PRINT_STATUS_FINISHEDThe printing has been completed successfully.gtk.PRINT_STATUS_FINISHED_ABORTEDThe printing has been aborted. GTK ProgressBar Orientation ConstantsThe ProgressBar Orientation constants specify the orientation
and growth direction for a visible progress bar.gtk.PROGRESS_LEFT_TO_RIGHTA horizontal progress bar growing from left to
right.gtk.PROGRESS_RIGHT_TO_LEFTA horizontal progress bar growing from right to
left.gtk.PROGRESS_BOTTOM_TO_TOPA vertical progress bar growing from bottom to
top.gtk.PROGRESS_TOP_TO_BOTTOMA vertical progress bar growing from top to
bottom.GTK ProgressBar Style ConstantsThe ProgressBar Style constants specify the style of the gtk.ProgressBar
display.gtk.PROGRESS_CONTINUOUSThe progress bar grows in a smooth, continuous
manner.gtk.PROGRESS_DISCRETEThe progress bar grows in discrete, visible
blocks.GTK RC Flags ConstantsThe>RC Flags constants are a set of bit-flags that specify which
fields of a gtk.RcStyle have
been set for each state.gtk.RC_FGIf present, the foreground color has been set for this
state.gtk.RC_BGIf present, the background color has been set for this
state.gtk.RC_TEXTIf present, the text color has been set for this
state.gtk.RC_BASEIf present, the base color has been set for this
state.GTK RC Token Type ConstantsThe RC Token Type constants specify the tokens in the RC
file. It is exposed so that theme engines can reuse these tokens when
parsing the theme-engine specific portions of a RC file.gtk.RC_TOKEN_INVALIDgtk.RC_TOKEN_INCLUDEgtk.RC_TOKEN_NORMALgtk.RC_TOKEN_ACTIVEgtk.RC_TOKEN_PRELIGHTgtk.RC_TOKEN_SELECTEDgtk.RC_TOKEN_INSENSITIVEgtk.RC_TOKEN_FGgtk.RC_TOKEN_BGgtk.RC_TOKEN_TEXTgtk.RC_TOKEN_BASEgtk.RC_TOKEN_XTHICKNESSgtk.RC_TOKEN_YTHICKNESSgtk.RC_TOKEN_FONTgtk.RC_TOKEN_FONTSETgtk.RC_TOKEN_FONT_NAMEgtk.RC_TOKEN_BG_PIXMAPgtk.RC_TOKEN_PIXMAP_PATHgtk.RC_TOKEN_STYLEgtk.RC_TOKEN_BINDINGgtk.RC_TOKEN_BINDgtk.RC_TOKEN_WIDGETgtk.RC_TOKEN_WIDGET_CLASSgtk.RC_TOKEN_CLASSgtk.RC_TOKEN_LOWESTgtk.RC_TOKEN_GTKgtk.RC_TOKEN_APPLICATIONgtk.RC_TOKEN_THEMEgtk.RC_TOKEN_RCgtk.RC_TOKEN_HIGHESTgtk.RC_TOKEN_ENGINEgtk.RC_TOKEN_MODULE_PATHgtk.RC_TOKEN_IM_MODULE_PATHgtk.RC_TOKEN_IM_MODULE_FILEgtk.RC_TOKEN_STOCKgtk.RC_TOKEN_LTRgtk.RC_TOKEN_RTLgtk.RC_TOKEN_LASTGTK Recent Chooser Error ConstantsThe Recent Recent Chooser Error constants specify the various
errors that can occur while calling gtk.RecentChooser
methods:gtk.RECENT_CHOOSER_ERROR_NOT_FOUNDIndicates that a file does not existgtk.RECENT_CHOOSER_ERROR_INVALID_URIIndicates a malformed URIGTK Recent Filter FlagsThe Recent Filter Flags specify what types of filtering are
needed:gtk.RECENT_FILTER_URIthe URI of the file being testedgtk.RECENT_FILTER_DISPLAY_NAMEthe string that will be used to display the file in the
recent choosergtk.RECENT_FILTER_MIME_TYPEthe mime type of the filegtk.RECENT_FILTER_APPLICATIONthe list of applications that have registered the
filegtk.RECENT_FILTER_GROUPthe groups to which the file belongsgtk.RECENT_FILTER_AGEthe number of days elapsed since the file has been
registeredGTK Recent Sort Type ConstantsThe Recent Sort Type constants specify the sorting method to be
applyed to the recently used resource list.gtk.RECENT_SORT_NONEDo not sort the returned list of recently used
resources.gtk.RECENT_SORT_MRUSort the returned list with the most recently used
items first.gtk.RECENT_SORT_LRUSort the returned list with the least recently used
items first.gtk.RECENT_SORT_CUSTOMSort the returned list using a custom sorting function
passed using the gtk.RecentChooser.set_sort_func()
method.GTK Relief Style ConstantsThe Relief Style constants specify gtk.RELIEF_NORMALDraw a normal relief.gtk.RELIEF_HALFDraw a half relief.gtk.RELIEF_NONEDraw no relief.GTK Resize Mode ConstantsThe Resize Mode constants specify how resize requests are
handled by a widget.gtk.RESIZE_PARENTPass resize request to the parentgtk.RESIZE_QUEUEQueue resizes on this widgetgtk.RESIZE_IMMEDIATEPerform the resizes nowGTK Response Type ConstantsThe Response Type constants specify pre-defined response
values.gtk.RESPONSE_NONEgtk.RESPONSE_REJECTgtk.RESPONSE_ACCEPTgtk.RESPONSE_DELETE_EVENTgtk.RESPONSE_OKgtk.RESPONSE_CANCELgtk.RESPONSE_CLOSEgtk.RESPONSE_YESgtk.RESPONSE_NOgtk.RESPONSE_APPLYgtk.RESPONSE_HELPGTK Scroll Step ConstantsThe Scroll Step constants specify the size of the scroll
movements.gtk.SCROLL_STEPSScroll up or down in step incrementsgtk.SCROLL_PAGES,Scroll up or down in page incrementsgtk.SCROLL_ENDSScroll to the beginning or endgtk.SCROLL_HORIZONTAL_STEPSScroll left or right in step incrementsgtk.SCROLL_HORIZONTAL_PAGESScroll left or right in step incrementsgtk.SCROLL_HORIZONTAL_ENDSScroll to the far left end or far right end.GTK Scroll Type ConstantsThe Scroll Type constants specify the type of scroll
\movement.gtk.SCROLL_NONEgtk.SCROLL_JUMPgtk.SCROLL_STEP_BACKWARDgtk.SCROLL_STEP_FORWARDgtk.SCROLL_PAGE_BACKWARDgtk.SCROLL_PAGE_FORWARDgtk.SCROLL_STEP_UPgtk.SCROLL_STEP_DOWNgtk.SCROLL_PAGE_UPgtk.SCROLL_PAGE_DOWNgtk.SCROLL_STEP_LEFT,gtk.SCROLL_STEP_RIGHTgtk.SCROLL_PAGE_LEFTgtk.SCROLL_PAGE_RIGHTgtk.SCROLL_STARTgtk.SCROLL_ENDGTK Selection Mode ConstantsThe Selection Mode constants specify the mode of gtk.TreeSelection
in a gtk.Treeviewgtk.SELECTION_NONENo selection allowed.gtk.SELECTION_SINGLEA single selection allowed by clicking.gtk.SELECTION_BROWSEA single selection allowed by browsing with the
pointer.gtk.SELECTION_MULTIPLEMultiple items can be selected at once.gtk.SELECTION_EXTENDEDDeprecated.GTK Shadow Type ConstantsThe Shadow Type constants specify the appearance of an outline
typically provided by a gtk.Frame.gtk.SHADOW_NONENo outline.gtk.SHADOW_INThe outline is beveled inward.gtk.SHADOW_OUTThe outline is beveled outward like a button.gtk.SHADOW_ETCHED_INThe outline itself is an inward bevel, but the frame
bevels outwardgtk.SHADOW_ETCHED_OUTThe outline itself is an outward bevel, but the frame
bevels inwardGTK SizeGroup Mode ConstantsThe SizeGroup Mode constants specify the directions in which the
size group affects the requested sizes of its component widgets.gtk.SIZE_GROUP_NONEThe group has no affectgtk.SIZE_GROUP_HORIZONTALThe group affects horizontal requisitiongtk.SIZE_GROUP_VERTICALThe group affects vertical requisitiongtk.SIZE_GROUP_BOTHThe group affects both horizontal and vertical
requisitionGTK Sort Type ConstantsThe Sort Type constants specify he direction of a sort.gtk.SORT_ASCENDINGSorting is in ascending order.gtk.SORT_DESCENDINGSorting is in descending order.GTK SpinButton Update Policy ConstantsThe SpinButton Update Policy constants specify the update policy
for a gtk.SpinButton.gtk.UPDATE_ALWAYSWhen refreshing a gtk.SpinButton,
the value is always displayed.gtk.UPDATE_IF_VALIDWhen refreshing a gtk.SpinButton,
the value is only displayed if it is valid within the bounds of the spin
button's gtk.Adjustment.GTK Spin Type ConstantsThe Spin Type constants specify the step movement of a gtk.SpinButton.gtk.SPIN_STEP_FORWARDSpin a gtk.SpinButton
forward by the step value of the spin button's gtk.Adjustment.gtk.SPIN_STEP_BACKWARDSpin a gtk.SpinButton
backward by the step value of the spin button's gtk.Adjustment.gtk.SPIN_PAGE_FORWARDSpin a gtk.SpinButton
forward by the page value of the spin button's gtk.Adjustment.gtk.SPIN_PAGE_BACKWARDSpin a gtk.SpinButton
backward by the page value of the spin button's gtk.Adjustment.gtk.SPIN_HOMESet the spin button's value to the minimum possible
value specified by its gtk.Adjustmentgtk.SPIN_ENDSet the spin button's value to the maximum possible
value specified by its gtk.Adjustmentgtk.SPIN_USER_DEFINEDThe programmer must specify the exact amount to spin
the gtk.SpinButton.GTK State Type ConstantsThe State Type constants specify the current state of a widget;
the state determines how the widget is drawn. The State Type constants are
also used to identify different colors in a gtk.Style for
drawing, so states can be used for subparts of a widget as well as entire
widgets.gtk.STATE_NORMALState during normal operation.gtk.STATE_ACTIVEState of a currently active widget, such as a depressed
button.gtk.STATE_PRELIGHTState indicating that the mouse pointer is over the
widget and the widget will respond to mouse clicks.gtk.STATE_SELECTEDState of a selected item, such the selected row in a
list.gtk.STATE_INSENSITIVEState indicating that the widget is unresponsive to
user actions.GTK Target Flags ConstantsThe Target Flags constants are a set of bit-flags that specify
constraints on the target of a drag operation.gtk.TARGET_SAME_APP If this is set, the target will only be selected for
drags within a single application.gtk.TARGET_SAME_WIDGETf this is set, the target will only be selected for
drags within a single widget.GTK Text Direction ConstantsThe Text Direction constants specify the direction of the
text.gtk.TEXT_DIR_NONEText direction not specified.gtk.TEXT_DIR_LTR,Left to right direction.gtk.TEXT_DIR_RTLRight to left directionGTK Text Search Flags Constants ConstantsThe Text Search Flags constants are a set of bit-flags that specify what types of text are
suitable for search matches in a gtk.TextView.gtk.TEXT_SEARCH_VISIBLE_ONLYOnly visible text can match the search
criteria.gtk.TEXT_SEARCH_TEXT_ONLYBoth visible and invisible text can match the search
criteria.GTK Text Window Type ConstantsThe Text Window Type constants specify the gtk.gdk.Window
objects that make up a gtk.TextView. See
the gtk.TextView.get_window()
method for more detail.gtk.TEXT_WINDOW_WIDGETThe gtk.gdk.Window of
the gtk.TextView
widget.gtk.TEXT_WINDOW_TEXTThe gtk.gdk.Window that
contains the text in the gtk.TextView.gtk.TEXT_WINDOW_LEFTThe left child gtk.gdk.Window of
the gtk.TextView.gtk.TEXT_WINDOW_RIGHTThe right child gtk.gdk.Window of
the gtk.TextView.gtk.TEXT_WINDOW_TOPThe top child gtk.gdk.Window of
the gtk.TextView.gtk.TEXT_WINDOW_BOTTOMThe bottom child gtk.gdk.Window of
the gtk.TextView.GTK TextBuffer Target Info ConstantsThe TextBuffer Target Info constants specify the info integer
for use with the gtk.target_list_add_rich_text_targets()
and gtk.target_list_add_text_targets()
functions.gtk.TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTSgtk.TEXT_BUFFER_TARGET_INFO_RICH_TEXTgtk.TEXT_BUFFER_TARGET_INFO_TEXTGTK Toolbar Space Style ConstantsThe Toolbar Space Style constants specify whether a spacer is
displayed as a vertical line or space.gtk.TOOLBAR_SPACE_EMPTY,Show as an empty spacegtk.TOOLBAR_SPACE_LINEShow as a vertical line.GTK Toolbar Style ConstantsThe Toolbar Style constants specify the appearance of a gtk.Toolbar. Note
that setting the toolbar style overrides the user's preferences for the
default toolbar style.gtk.TOOLBAR_ICONSButtons display only icons in the toolbar.gtk.TOOLBAR_TEXTButtons display only text labels in the
toolbar.gtk.TOOLBAR_BOTHButtons display text and icons in the
toolbar.gtk.TOOLBAR_BOTH_HORIZButtons display icons and text alongside each other,
rather than vertically stackedGTK TreeModel Flags ConstantsThe TreeModel Flags constants are a set of bit-flags that
specify various properties of a gtk.TreeModel. They
are returned by the gtk.TreeModel.get_flags()
method, and must be static for the lifetime of the object. A more complete
description of gtk.TREE_MODEL_ITERS_PERSIST can be found
in the gtk.TreeView
reference description.gtk.TREE_MODEL_ITERS_PERSISTIterators survive all signals emitted by the
tree.gtk.TREE_MODEL_LIST_ONLYThe model is a list only, and never has
childrenGTK TreeView Drop Position ConstantsThe TreeView Drop Position constants specify where a dropped row
goes.gtk.TREE_VIEW_DROP_BEFOREThe dropped item goes before the row it's dropped
on.gtk.TREE_VIEW_DROP_AFTERThe dropped item goes after the row it's dropped
on.gtk.TREE_VIEW_DROP_INTO_OR_BEFOREThe dropped item becomes a child of the row it's dropped
on. Fallback to goes before.gtk.TREE_VIEW_DROP_INTO_OR_AFTERThe dropped item becomes a child of the row it's dropped
on. Fallback to goes after.GTK TreeView Grid Lines ConstantsThe TreeView Grid Lines constants specify how grid lines should be applied to a TreeView.gtk.TREE_VIEW_GRID_LINES_NONEgtk.TREE_VIEW_GRID_LINES_HORIZONTALgtk.TREE_VIEW_GRID_LINES_VERTICALgtk.TREE_VIEW_GRID_LINES_BOTHGTK TreeViewColumn Sizing ConstantsThe TreeViewColumn Sizing constants specify the sizing method the
column uses to determine its width. Please note that
gtk.TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large
views, and can make columns appear choppy.gtk.TREE_VIEW_COLUMN_GROW_ONLYColumns only get bigger in reaction to changes in the
modelgtk.TREE_VIEW_COLUMN_AUTOSIZEColumns resize to be the optimal size every time the
model changes.gtk.TREE_VIEW_COLUMN_FIXEDColumns are a fixed numbers of pixels wide.GTK UIManager Item Type ConstantsThe UIManager Item Type constants specify what UI element to
create.gtk.UI_MANAGER_AUTOPick the type of the UI element according to
context.gtk.UI_MANAGER_MENUBARCreate a menubar. gtk.UI_MANAGER_MENUCreate a menu.gtk.UI_MANAGER_TOOLBARCreate a toolbar.gtk.UI_MANAGER_PLACEHOLDERInsert a placeholder.gtk.UI_MANAGER_POPUPCreate a popup menu.gtk.UI_MANAGER_MENUITEMCreate a menuitem.gtk.UI_MANAGER_TOOLITEMCreate a toolitem.gtk.UI_MANAGER_SEPARATORCreate a separator.gtk.UI_MANAGER_ACCELERATORInstall an accelerator.GTK Unit ConstantsThe Unit constants specify the gtk.UNIT_PIXELgtk.UNIT_POINTSgtk.UNIT_INCHgtk.UNIT_MMGTK Update Type ConstantsThe Update Type constants specify the update policy of a gtk.Range and gtk.SpinButton.gtk.UPDATE_CONTINUOUSUpdate the display continuously as the pointer is
moved.gtk.UPDATE_DISCONTINUOUSUpdate the display at intervals while the pointer is
being moved.gtk.UPDATE_DELAYEDUpdate the display after the pointer has finished
moving.GTK Version ConstantsThe Version constants specify the versions of
GTK+ and PyGTK as a 3-tuple containing
the major, minor and patch release numbers.gtk.gtk_versionA 3-tuple containing the GTK+
(major, minor, patch) release numbers.gtk.pygtk_versionA 3-tuple containing the PyGTK
(major, minor, patch) release numbers.GTK Widget Flags ConstantsThe Widget Flags constants are a set of bit-flags that specify
certain properties of the widget.gtk.TOPLEVELWidgets without a real parent, as there are gtk.Window and gtk.Menu objects that
have this flag set throughout their lifetime. Toplevel widgets always
contain their own gtk.gdk.Window.gtk.NO_WINDOW Indicative for a widget that does not provide its own
gtk.gdk.Window. Visible
action (e.g. drawing) is performed on the parent's gtk.gdk.Window.gtk.REALIZEDSet by the gtk.Widget.realize()
method , unset by the gtk.Widget.unrealize()
method. A realized widget has an associated gtk.gdk.Window.gtk.MAPPED Set by the gtk.Widget.map()
method, unset by the gtk.Widget.unmap()
method. Only realized widgets can be mapped. It means that the gtk.Window.show()
method has been called on the widgets window(s).gtk.VISIBLESet by the gtk.Widget.show()
method, unset by the gtk.Widget.hide()
method. Implies that a widget will be mapped as soon as its parent is
mapped.gtk.SENSITIVESet and unset by the gtk.Widget.set_sensitive()
method. The sensitivity of a widget determines whether it will receive
certain events (e.g. button or key presses). One premise for the widgets
sensitivity is to have this flag set.gtk.PARENT_SENSITIVESet and unset by the gtk.Widget.set_sensitive()
method operations on the parents of the widget. This is the second premise
for the widgets sensitivity. Once it has gtk.SENSITIVE
and gtk.PARENT_SENSITIVE set, its state is effectively
sensitive.gtk.CAN_FOCUSDetermines if a widget is able to handle focus
grabs.gtk.HAS_FOCUSSet by the gtk.Widget.grab_focus()
method for widgets that also have gtk.CAN_FOCUS set. The
flag will be unset once another widget grabs the focus.gtk.CAN_DEFAULTThe widget is allowed to receive the default action via
the gtk.Widget.grab_default()
method.gtk.HAS_DEFAULTThe widget currently is receiving the default
action.gtk.HAS_GRABSet by the gtk.Widget.grab_add()
method, unset by the gtk.Widget.grab_remove()
method. It means that the widget is in the grab_widgets stack, and will be
the preferred one for receiving events other than ones of cosmetic
value.gtk.RC_STYLE Indicates that the widgets style has been looked up
through the rc mechanism. It does not imply that the widget actually had a
style defined through the rc mechanism.gtk.COMPOSITE_CHILDIndicates that the widget is a composite child of its
parent; see the gtk.widget_push_composite_child()
and gtk.widget_pop_composite_child()
functions.gtk.NO_REPARENTUnused.gtk.APP_PAINTABLESet and unset by the gtk.Widget.set_app_paintable()
method. Must be set on widgets whose window the application directly draws
on, in order to keep PyGTK and GTK+ from overwriting the drawn
stuff.gtk.RECEIVES_DEFAULTThe widget when focused will receive the default action
and have gtk.HAS_DEFAULT set even if there is a different
widget set as default.gtk.DOUBLE_BUFFEREDSet and unset by the gtk.Widget.set_double_buffered()
method. Indicates that exposes done on the widget should be
double-buffered.gtk.NO_SHOW_ALLIf True, the show_all()
and hide_all()
methods do not affect the widget.GTK Widget Help Type ConstantsThe Widget Help Type constants specify the help type of the
widget.gtk.WIDGET_HELP_TOOLTIPTooltip help.gtk.WIDGET_HELP_WHATS_THISWhat's this help.GTK Window Position ConstantsThe Window Position constants specify hints for initial window
placement.gtk.WIN_POS_NONENo influence is made on placement.gtk.WIN_POS_CENTERWindows should be placed in the center of the screen.gtk.WIN_POS_MOUSEWindows should be placed at the current mouse position.gtk.WIN_POS_CENTER_ALWAYSKeep window centered as it changes size, etc.gtk.WIN_POS_CENTER_ON_PARENTCenter the window on its transient parent (see the
gtk.Window.set_transient_for())
method.GTK Window Type ConstantsThe Window Type constants specify the type of a gtk.Window. Most
things you'd consider a "window" should have type
gtk.WINDOW_TOPLEVEL; windows with this type are managed
by the window manager and have a frame by default (call the set_decorated()
method to toggle the frame). Windows with type
gtk.WINDOW_POPUP are ignored by the window manager;
window manager keybindings won't work on them, the window manager won't
decorate the window with a frame, many GTK+ features that rely on the window
manager will not work (e.g. resize grips and
maximization/minimization). gtk.WINDOW_POPUP is used to
implement widgets such as gtk.Menu or tooltips
that you normally don't think of as windows per se. Nearly all windows
should be gtk.WINDOW_TOPLEVEL. In particular, do not use
gtk.WINDOW_POPUP just to turn off the window borders; use
the gtk.Window.set_decorated()
method for that.gtk.WINDOW_TOPLEVELA regular window, such as a dialog.gtk.WINDOW_POPUPA special window such as a tooltip.GTK Wrap Mode ConstantsThe Wrap Mode constants specify the type of line wrapping in a
gtk.TextView.gtk.WRAP_NONEDo not wrap lines - just make the text area
widergtk.WRAP_CHARWrap text, breaking lines anywhere the cursor can
appear (usually between characters)gtk.WRAP_WORDWrap text, breaking lines in between wordsgtk.WRAP_WORD_CHARWrap text, breaking lines in between words, or if that
is not enough, also between graphemes.