gtk Constants — the built-in constants of the gtk module
GTK Accel Flags Constants GTK Anchor Type Constants GTK Arrow Type Constants GTK Assistant Page Type Constants GTK Attach Flag Options Constants GTK ButtonBox Style Constants GTK Buttons Type Constants GTK Calendar Display Options Constants GTK CellRenderer Mode Constants GTK CellRenderer State Constants GTK CellRendererAccel Mode Constants GTK Corner Type Constants GTK Curve Type Constants GTK Debug Flag Constants GTK Delete Type Constants GTK Dest Defaults Constants GTK Dialog Flag Constants GTK Direction Type Constants GTK Expander Style Constants GTK FileChooser Action Constants GTK FileChooser Confirmation Constants GTK FileChooser Error Constants GTK FileFilter Flags Constants GTK Icon Lookup Flags Constants GTK Icon Size Constants GTK IconTheme Error Constants GTK IconView Drop Position Constants GTK IM Pre-edit Style Constants GTK IM Status Style Constants GTK Image Type Constants GTK Justification Constants GTK Menu Direction Type Constants GTK Message Type Constants GTK Metric Type Constants GTK Movement Step Constants GTK Notebook Tab Constants GTK Number Up Layout Constants GTK Object Flags Constants GTK Orientation Constants GTK Pack Direction Constants GTK Pack Type Constants GTK Page Orientation Constants GTK Page Set Constants GTK Papaer Name Constants GTK Path Priority Type Constants GTK Path Type Constants GTK Policy Type Constants GTK Position Type Constants GTK Print Duplex Constants GTK Print Error Constants GTK Print Pages Constants GTK Print Operation Action Constants GTK Print Operation Result Constants GTK Print Quality Constants GTK Print Status Constants GTK ProgressBar Orientation Constants GTK ProgressBar Style Constants GTK RC Flags Constants GTK RC Token Type Constants GTK Recent Chooser Error Constants GTK Recent Filter Flags GTK Recent Sort Type Constants GTK Relief Style Constants GTK Resize Mode Constants GTK Response Type Constants GTK Scroll Step Constants GTK Scroll Type Constants GTK Selection Mode Constants GTK Shadow Type Constants GTK SizeGroup Mode Constants GTK Sort Type Constants GTK SpinButton Update Policy Constants GTK Spin Type Constants GTK State Type Constants GTK Target Flags Constants GTK Text Direction Constants GTK Text Search Flags Constants Constants GTK Text Window Type Constants GTK TextBuffer Target Info Constants GTK Toolbar Space Style Constants GTK Toolbar Style Constants GTK TreeModel Flags Constants GTK TreeView Drop Position Constants GTK TreeView Grid Lines Constants GTK TreeViewColumn Sizing Constants GTK UIManager Item Type Constants GTK Unit Constants GTK Update Type Constants GTK Version Constants GTK Widget Flags Constants GTK Widget Help Type Constants GTK Window Position Constants GTK Window Type Constants GTK Wrap Mode Constants
The Accel Flags constants are a set of bit-flags that specify characteristics of the accelerator.
| if set, the accelerator is visible in a label |
| If set the accelerator cannot be changed by the user. |
| A mask for the Accel Flags |
The Anchor Type constants specify the anchor point of a widget.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Same as gtk.ANCHOR_NORTH |
| Same as gtk.ANCHOR_NORTH_WEST |
| Same as gtk.ANCHOR_NORTH_EAST |
| Same as gtk.ANCHOR_SOUTH |
| Same as gtk.ANCHOR_SOUTH_WEST |
| Same as gtk.ANCHOR_SOUTH_EAST |
| Same as gtk.ANCHOR_WEST |
| Same as gtk.ANCHOR_EAST |
The Arrow Type constants specify the direction a gtk.Arrow
should
point.
| Represents an upward pointing arrow. |
| Represents a downward pointing arrow. |
| Represents a left pointing arrow. |
| Represents a right pointing arrow. |
The 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.
| The page has regular contents. |
| The page contains an introduction to the assistant task. |
| The page lets the user confirm or deny the changes. |
| The page informs the user of the changes done. |
| Used for tasks that take a long time to complete, blocks the assistant until the page is marked as complete. |
The 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.
| The widget should expand to take up any extra space in its container that has been allocated. |
| The widget should shrink as and when possible. |
| The widget should fill the space allocated to it. |
The ButtonBox Style constants specify the style that a gtk.ButtonBox
uses to layout the buttons it contains. (See also: gtk.VButtonBox
and gtk.HButtonBox
).
| Default packing. |
| Buttons are evenly spread across the ButtonBox. |
| Buttons are placed at the edges of the ButtonBox. |
| Buttons are grouped toward the start of box, (on the left for a HBox, or the top for a VBox). |
| Buttons are grouped toward the end of a box, (on the right for a HBox, or the bottom for a VBox). |
The 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.
| no buttons at all |
| an OK button |
| a Close button |
| a Cancel button |
| Yes and No buttons |
| OK and Cancel buttons |
The Calendar Display Options constants are a set of bit-flags
that specify the display and behavior of a gtk.Calendar
.
| Specifies that the month and year should be displayed. |
| Specifies that three letter day descriptions should be present. |
| Prevents the user from switching months with the calendar. |
| Displays each week numbers of the current year, down the left side of the calendar. |
| Since 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. |
The CellRenderer Mode constants specify how the user can interact with a particular cell.
| The 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. |
| The cell can be clicked. |
| The cell can be edited or otherwise modified. |
The CellRenderer State constants specify how a cell is to be rendered.
| The cell is currently selected, and probably has a selection colored background to render to. |
| The mouse is hovering over the cell. |
| The cell is drawn in an insensitive manner |
| The cell is in a sorted row |
| The cell has the focus. |
The 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.
| Only accelerators accepted by GTK+ are allowed. |
| Any accelerators are allowed. |
The 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.
| Place the scrollbars on the right and bottom of the widget (default behavior). |
| Place the scrollbars on the top and right of the widget. |
| Place the scrollbars on the left and bottom of the widget. |
| Place the scrollbars on the top and left of the widget. |
The Curve Type constants specify the type of curve to use for a
gtk.Curve
.
| Linear interpolation |
| Spline interpolation |
| Free form curve |
The Debug Flag constants are a set of bit-flags that specify the debug options.
| |
| |
| |
| |
| |
| |
|
The Delete Type constants specify the deletion type.
| Delete a character at the cursor |
| Delete from the cursor to the end of a word |
| Delete a number of words |
| Delete a single line at the cursor |
| Delete from the cursor to the end of the line. |
| Delete from the cursor to a paragraph end (usually to the period) |
| Delete several complete paragraphs at the cursor |
| Delete the whitespace at the cursor. |
The 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.
| If 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. |
| 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. |
| If 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. |
| If set, specifies that all default actions should be taken. |
The Dialog Flag constants are a set of bit-flags that specify characteristics of a dialog.
| If set, the dialog grabs all keyboard events |
| If set, the dialog is destroyed when its parent is. |
| If set, there is no separator bar above the buttons. |
The Direction Type constants specify a direction for moving a cursor or focus.
| Tab forward. |
| Tab backward. |
| Up. |
| Down. |
| Left. |
| Right. |
The Expander Style constants specify the style of the expanders
drawn by a gtk.TreeView
| The style used for a collapsed subtree. |
| Intermediate style used during animation. |
| Intermediate style used during animation. |
| The style used for an expanded subtree. |
The 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.
| Indicates open mode. The file chooser will only let the user pick an existing file. |
| Indicates save mode. The file chooser will let the user pick an existing file, or type in a new filename. |
| Indicates an Open mode for selecting folders. The file chooser will let the user pick an existing folder. |
| Indicates a mode for creating a new folder. The file chooser will let the user name an existing or new folder. |
These 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.
| The file chooser will present its stock dialog to confirm overwriting an existing file. |
| The file chooser will terminate and accept the user's choice of a file name. |
| The file chooser will continue running, allowing the user to select another file name. |
The FileChooser Error constants specify the various errors that
can occur while calling gtk.FileChooser
functions.
| Indicates that a file does not exist. |
| Indicates a malformed filename. |
The FileFilter Flags constants are a set of bit-flags that specify the file types to filter the files against.
| The full pathname of the file e.g. /tmp/junk. |
| The full URI of the file e.g. file:///tmp/junk. |
| The simple name of the file e.g. junk. |
| The MIME type of the file e.g. text/html. |
The Icon Lookup Flags constants are a set of bit-flags that
specify options for the gtk.IconTheme.lookup_icon
()
method
| Never return SVG (Scalable Vector Graphics) icons,
even if gdk-pixbuf supports them. Cannot be used together with
gtk.ICON_LOOKUP_FORCE_SVG . |
| Return SVG icons, even if gdk-pixbuf doesn't support
them. Cannot be used together with
gtk.ICON_LOOKUP_NO_SVG . |
| When 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. |
The Icon Size constants specify the pre-defined sizes of icons for various application uses.
| |
| |
| |
| |
| |
| |
|
The IconTheme Error constants specify error codes for gtk.IconTheme
operations.
| The icon specified does not exist in the theme |
| An unspecified error occurred. |
The IconView Drop Position constants specify the location relative to the receiving item where the drop should take place.
| |
| |
| |
| |
| |
|
The IM Pre-edit Style constants specify the style of input method pre-edit display.
| |
| |
|
The IM Status Style constants specify the style of input method display.
| |
| |
|
The Image Type constants specify the type of image in a gtk.Image
.
| There is no image displayed by the widget |
| The widget contains a gtk.gdk.Pixmap |
| The widget contains a gtk.gdk.Image |
| The widget contains a gtk.gdk.Pixbuf |
| The widget contains a stock icon name (see the Stock Items reference) |
| The widget contains a gtk.IconSet |
| The widget contains a gtk.gdk.PixbufAnimation |
The Justification constants specify the justification of the
text inside a gtk.Label
widget. (See also gtk.Alignment
).
| The text is placed at the left edge of the label. |
| The text is placed at the right edge of the label. |
| The text is placed in the center of the label. |
| The text is placed is distributed across the label. |
The Menu Direction Type constants specify directional movements within a menu.
| To the parent menu shell. |
| To the submenu, if any, associated with the item. |
| To the next menu item. |
| To the previous menu item. |
The Message Type constants specify the type of message being displayed in the message dialog.
| Informational message |
| Nonfatal warning message |
| Question requiring a choice |
| Fatal error message |
The Metric Type constants specify the metric used by a gtk.Ruler
.
| Pixels. |
| Inches. |
| Centimeters. |
The Movement Step constants specify the steps used in movement through text.
| move by graphemes |
| move by graphemes |
| move by words |
| move by lines(wrapped lines) |
| move to line ends(wrapped lines) |
| move by paragraphs(newline-ended lines) |
| move to ends of a paragraph |
| move by pages |
| move to ends of the buffer |
The Notebook Tab constants specify the tab position to receive focus.
| The first gtk.Notebook
tab |
| The last gtk.Notebook
tab |
Used to determine the layout of pages on a sheet when printing multiple pages per sheet.
| |
| |
| |
| |
| |
| |
| |
|
The Object Flags constants are a set of bit-flags that specify
the state of the gtk.Object
.
| The object is currently being destroyed. This is used internally to prevent reinvocations during destruction. |
| The object is orphaned. |
The Orientation constants specify the orientation of widgets
which can be switched between horizontal and vertical orientation on the
fly, like gtk.Toolbar
.
| The widget is in horizontal orientation. |
| The widget is in vertical orientation. |
The Pack Direction constants specify the arrangement of gtk.MenuItem
s in a
gtk.MenuBar
or in a child gtk.MenuItem
of a
menubar.
| Pack left to right |
| Pack right to left |
| Pack top to bottom |
| Pack bottom to top |
The Pack Type constants specify the packing location gtk.Box
children. (See:
gtk.VBox
, gtk.HBox
, and gtk.ButtonBox
).
| The child is packed into the start of the box |
| The child is packed into the end of the box |
The Page Orientation constants specify the orientation of a page.
| |
| |
| |
|
The Page Set constants specify the set of pages to print.
| print all pages |
| print even pages only |
| print odd pages only |
The Paper Name constants specify the common standard sizes of paper as a string.
| Name for the A4 paper size. |
| Name for the A4 paper size. |
| Name for the A5 paper size. |
| Name for the B5 paper size. |
| Name for the Letter paper size. |
| Name for the Executive paper size. |
|
The Path Priority Type constants are a set of bit-flags that specify the priority of path lookup.
| |
| |
| |
| |
| |
|
The Path Type constants specify
| |
| |
|
The Policy Type constants specify when a scroll bar will be visible.
gtk.POLICY_ALWAYS | the scrollbar is always present |
gtk.POLICY_AUTOMATIC | the scrollbar is present only if needed i.e. the contents are larger than the window |
gtk.POLICY_NEVER | the scrollbar is never present |
The Position Type constants specify
| The feature is at the left edge. |
| The feature is at the right edge. |
| The feature is at the top edge. |
| The feature is at the bottom edge |
The Print Status constants specify how the output pages should be duplexed:
| one page per sheet i.e. no duplexing |
| two pages per sheet horizontally duplexed |
| two pages per sheet vertically duplexed |
The Print Error constants specify the type of printing error:
| |
| |
|
The Print Pages constants specify the set that should be printed:
| print all pages |
| print the current page |
| print the specified ranges of pages |
The Print Operation Action constants specify the print operation to be performed:
| Show the print dialog. |
| Start to print without showing the print dialog, based on the current print settings. |
| Show the print preview. |
| Export to a file. This requires the "export-filename" property to be set. |
The Print Operation Result constants specify the result of the
print operation as returned by the gtk.PrintOperation.run
())
method:
| An error has occured. |
| The print settings should be stored. |
| The print operation has been canceled, the print settings should not be stored. |
| The print operation is complete yet. This value will only be returned when running asynchronously. |
The Print Quality constants specify the quality that should be used when printing the output pages:
| low quality |
| normal quality |
| high quality |
| draft quality |
The Print Status constants specify
| The printing has not started yet; this status is set initially, and while the print dialog is shown. |
| This status is set while the "begin-print" signal is emitted and during pagination. |
| This status is set while the pages are being rendered. |
| The print job is being sent off to the printer. |
| The print job has been sent to the printer, but is not printed for some reason, e.g. the printer may be stopped. |
| Some problem has occurred during printing, e.g. a paper jam. |
| The printer is processing the print job. |
| The printing has been completed successfully. |
| The printing has been aborted. |
The ProgressBar Orientation constants specify the orientation and growth direction for a visible progress bar.
| A horizontal progress bar growing from left to right. |
| A horizontal progress bar growing from right to left. |
| A vertical progress bar growing from bottom to top. |
| A vertical progress bar growing from top to bottom. |
The ProgressBar Style constants specify the style of the gtk.ProgressBar
display.
| The progress bar grows in a smooth, continuous manner. |
| The progress bar grows in discrete, visible blocks. |
The>RC Flags constants are a set of bit-flags that specify which
fields of a gtk.RcStyle
have
been set for each state.
| If present, the foreground color has been set for this state. |
| If present, the background color has been set for this state. |
| If present, the text color has been set for this state. |
| If present, the base color has been set for this state. |
The 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.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
The Recent Recent Chooser Error constants specify the various
errors that can occur while calling gtk.RecentChooser
methods:
| Indicates that a file does not exist |
| Indicates a malformed URI |
The Recent Filter Flags specify what types of filtering are needed:
| the URI of the file being tested |
| the string that will be used to display the file in the recent chooser |
| the mime type of the file |
| the list of applications that have registered the file |
| the groups to which the file belongs |
| the number of days elapsed since the file has been registered |
The Recent Sort Type constants specify the sorting method to be applyed to the recently used resource list.
| Do not sort the returned list of recently used resources. |
| Sort the returned list with the most recently used items first. |
| Sort the returned list with the least recently used items first. |
| Sort the returned list using a custom sorting function
passed using the gtk.RecentChooser.set_sort_func ()
method. |
The Relief Style constants specify
| Draw a normal relief. |
| Draw a half relief. |
| Draw no relief. |
The Resize Mode constants specify how resize requests are handled by a widget.
| Pass resize request to the parent |
| Queue resizes on this widget |
| Perform the resizes now |
The Response Type constants specify pre-defined response values.
gtk.RESPONSE_NONE | |
gtk.RESPONSE_REJECT | |
gtk.RESPONSE_ACCEPT | |
gtk.RESPONSE_DELETE_EVENT | |
gtk.RESPONSE_OK | |
gtk.RESPONSE_CANCEL | |
gtk.RESPONSE_CLOSE | |
gtk.RESPONSE_YES | |
gtk.RESPONSE_NO | |
gtk.RESPONSE_APPLY | |
gtk.RESPONSE_HELP |
The Scroll Step constants specify the size of the scroll movements.
| Scroll up or down in step increments |
| Scroll up or down in page increments |
| Scroll to the beginning or end |
| Scroll left or right in step increments |
| Scroll left or right in step increments |
| Scroll to the far left end or far right end. |
The Scroll Type constants specify the type of scroll \movement.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
The Selection Mode constants specify the mode of gtk.TreeSelection
in a gtk.Treeview
| No selection allowed. |
| A single selection allowed by clicking. |
| A single selection allowed by browsing with the pointer. |
| Multiple items can be selected at once. |
| Deprecated. |
The Shadow Type constants specify the appearance of an outline
typically provided by a gtk.Frame
.
| No outline. |
| The outline is beveled inward. |
| The outline is beveled outward like a button. |
| The outline itself is an inward bevel, but the frame bevels outward |
| The outline itself is an outward bevel, but the frame bevels inward |
The SizeGroup Mode constants specify the directions in which the size group affects the requested sizes of its component widgets.
| The group has no affect |
| The group affects horizontal requisition |
| The group affects vertical requisition |
| The group affects both horizontal and vertical requisition |
The Sort Type constants specify he direction of a sort.
| Sorting is in ascending order. |
| Sorting is in descending order. |
The SpinButton Update Policy constants specify the update policy
for a gtk.SpinButton
.
| When refreshing a gtk.SpinButton ,
the value is always displayed. |
| When refreshing a gtk.SpinButton ,
the value is only displayed if it is valid within the bounds of the spin
button's gtk.Adjustment . |
The Spin Type constants specify the step movement of a gtk.SpinButton
.
| Spin a gtk.SpinButton
forward by the step value of the spin button's gtk.Adjustment . |
| Spin a gtk.SpinButton
backward by the step value of the spin button's gtk.Adjustment . |
| Spin a gtk.SpinButton
forward by the page value of the spin button's gtk.Adjustment . |
| Spin a gtk.SpinButton
backward by the page value of the spin button's gtk.Adjustment . |
| Set the spin button's value to the minimum possible
value specified by its gtk.Adjustment |
| Set the spin button's value to the maximum possible
value specified by its gtk.Adjustment |
| The programmer must specify the exact amount to spin
the gtk.SpinButton . |
The 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.
| State during normal operation. |
| State of a currently active widget, such as a depressed button. |
| State indicating that the mouse pointer is over the widget and the widget will respond to mouse clicks. |
| State of a selected item, such the selected row in a list. |
| State indicating that the widget is unresponsive to user actions. |
The Target Flags constants are a set of bit-flags that specify constraints on the target of a drag operation.
| If this is set, the target will only be selected for drags within a single application. |
| f this is set, the target will only be selected for drags within a single widget. |
The Text Direction constants specify the direction of the text.
| Text direction not specified. |
| Left to right direction. |
| Right to left direction |
The 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
.
| Only visible text can match the search criteria. |
| Both visible and invisible text can match the search criteria. |
The 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.
| The gtk.gdk.Window of
the gtk.TextView
widget. |
| The gtk.gdk.Window that
contains the text in the gtk.TextView . |
| The left child gtk.gdk.Window of
the gtk.TextView . |
| The right child gtk.gdk.Window of
the gtk.TextView . |
| The top child gtk.gdk.Window of
the gtk.TextView . |
| The bottom child gtk.gdk.Window of
the gtk.TextView . |
The 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.
| |
| |
|
The Toolbar Space Style constants specify whether a spacer is displayed as a vertical line or space.
| Show as an empty space |
| Show as a vertical line. |
The 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.
| Buttons display only icons in the toolbar. |
| Buttons display only text labels in the toolbar. |
| Buttons display text and icons in the toolbar. |
| Buttons display icons and text alongside each other, rather than vertically stacked |
The 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.
| Iterators survive all signals emitted by the tree. |
| The model is a list only, and never has children |
The TreeView Drop Position constants specify where a dropped row goes.
| The dropped item goes before the row it's dropped on. |
| The dropped item goes after the row it's dropped on. |
| The dropped item becomes a child of the row it's dropped on. Fallback to goes before. |
| The dropped item becomes a child of the row it's dropped on. Fallback to goes after. |
The TreeView Grid Lines constants specify how grid lines should be applied to a TreeView.
| |
| |
| |
|
The 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.
| Columns only get bigger in reaction to changes in the model |
| Columns resize to be the optimal size every time the model changes. |
| Columns are a fixed numbers of pixels wide. |
The UIManager Item Type constants specify what UI element to create.
| Pick the type of the UI element according to context. |
| Create a menubar. |
| Create a menu. |
| Create a toolbar. |
| Insert a placeholder. |
| Create a popup menu. |
| Create a menuitem. |
| Create a toolitem. |
| Create a separator. |
| Install an accelerator. |
The Unit constants specify the
| |
| |
| |
|
The Update Type constants specify the update policy of a gtk.Range
and gtk.SpinButton
.
| Update the display continuously as the pointer is moved. |
| Update the display at intervals while the pointer is being moved. |
| Update the display after the pointer has finished moving. |
The Version constants specify the versions of
GTK+
and PyGTK
as a 3-tuple containing
the major, minor and patch release numbers.
| A 3-tuple containing the GTK+
(major, minor, patch) release numbers. |
| A 3-tuple containing the PyGTK
(major, minor, patch) release numbers. |
The Widget Flags constants are a set of bit-flags that specify certain properties of the widget.
| Widgets 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 . |
| 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 . |
| Set by the gtk.Widget.realize ()
method , unset by the gtk.Widget.unrealize ()
method. A realized widget has an associated gtk.gdk.Window . |
| 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). |
| Set 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. |
| Set 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. |
| Set 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. |
| Determines if a widget is able to handle focus grabs. |
| Set 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. |
| The widget is allowed to receive the default action via
the gtk.Widget.grab_default ()
method. |
| The widget currently is receiving the default action. |
| Set 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. |
| 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. |
| Indicates that the widget is a composite child of its
parent; see the gtk.widget_push_composite_child ()
and gtk.widget_pop_composite_child ()
functions. |
| Unused. |
| Set 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. |
| The widget when focused will receive the default action
and have gtk.HAS_DEFAULT set even if there is a different
widget set as default. |
| Set and unset by the gtk.Widget.set_double_buffered ()
method. Indicates that exposes done on the widget should be
double-buffered. |
| If True , the show_all ()
and hide_all ()
methods do not affect the widget. |
The Widget Help Type constants specify the help type of the widget.
| Tooltip help. |
| What's this help. |
The Window Position constants specify hints for initial window placement.
| No influence is made on placement. |
| Windows should be placed in the center of the screen. |
| Windows should be placed at the current mouse position. |
| Keep window centered as it changes size, etc. |
| Center the window on its transient parent (see the
gtk.Window.set_transient_for ())
method. |
The 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.
| A regular window, such as a dialog. |
| A special window such as a tooltip. |
The Wrap Mode constants specify the type of line wrapping in a
gtk.TextView
.
| Do not wrap lines - just make the text area wider |
| Wrap text, breaking lines anywhere the cursor can appear (usually between characters) |
| Wrap text, breaking lines in between words |
| Wrap text, breaking lines in between words, or if that is not enough, also between graphemes. |