1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gobject Constants</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gobject-class-reference.html" title="The gobject Class Reference"><link rel="previous" href="gobject-functions.html" title="gobject Functions"><link rel="next" href="gtk-class-reference.html" title="The gtk Class Reference"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gobject Constants</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gobject-functions.html">Prev</a></td><th width="60%" align="center">The gobject Class Reference</th><td width="20%" align="right"><a accesskey="n" href="gtk-class-reference.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="gobject-constants"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gobject Constants</h2><p>gobject Constants — the built-in constants of the gobject module</p></div><div class="refsect1" lang="en"><a name="id3003769"></a><h2>Synopsis</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
<a href="gobject-constants.html#gobject-io-condition-constants">GObject IO Condition Constants</a>
<a href="gobject-constants.html#gobject-param-constants">GObject Param Flag Constants</a>
<a href="gobject-constants.html#gobject-priority-constants">GObject Priority Constants</a>
<a href="gobject-constants.html#gobject-signal-constants">GObject Signal Flag Constants</a>
<a href="gobject-constants.html#gobject-type-constants">GObject Built-in Type Constants</a>
<a href="gobject-constants.html#gobject-version-constants">GObject Version Constants</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="gobject-constants-description"></a><h2>Description</h2><div class="refsect2" lang="en"><a name="gobject-io-condition-constants"></a><h3>GObject IO Condition Constants</h3><p>The IO Condition constants are a set of bit-flags that specify a
condition to watch for on an event source.</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.IO_IN</tt></span></td><td>There is data to read</td></tr><tr><td><span class="term"><tt class="literal">gobject.IO_OUT</tt></span></td><td>Data can be written (without blocking).</td></tr><tr><td><span class="term"><tt class="literal">gobject.IO_PRI</tt></span></td><td>There is urgent data to read.</td></tr><tr><td><span class="term"><tt class="literal">gobject.IO_ERR</tt></span></td><td>Error condition.</td></tr><tr><td><span class="term"><tt class="literal">gobject.IO_HUP</tt></span></td><td>Hung up (the connection has been broken, usually for
pipes and sockets).</td></tr><tr><td><span class="term"><tt class="literal">gobject.IO_NVAL</tt></span></td><td>Invalid request. The file descriptor is not
open.</td></tr></tbody></table></div><div class="refsect2" lang="en"><a name="gobject-param-constants"></a><h3>GObject Param Flag Constants</h3><p>The Param Flag constants are a set of bit-flags that specify
certain aspects of parameters that can be configured.</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.PARAM_READABLE</tt></span></td><td>The parameter is readable</td></tr><tr><td><span class="term"><tt class="literal">gobject.PARAM_WRITABLE</tt></span></td><td>The parameter is writable</td></tr><tr><td><span class="term"><tt class="literal">gobject.PARAM_CONSTRUCT</tt></span></td><td>The parameter will be set upon object
construction</td></tr><tr><td><span class="term"><tt class="literal">gobject.PARAM_CONSTRUCT_ONLY</tt></span></td><td>The parameter will only be set upon object
construction</td></tr><tr><td><span class="term"><tt class="literal">gobject.PARAM_LAX_VALIDATION</tt></span></td><td>Upon parameter conversion strict validation is not
required</td></tr></tbody></table></div><div class="refsect2" lang="en"><a name="gobject-priority-constants"></a><h3>GObject Priority Constants</h3><p>The Priority constants specify </p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.PRIORITY_HIGH</tt></span></td><td>Use this for high priority event sources.</td></tr><tr><td><span class="term"><tt class="literal">gobject.PRIORITY_DEFAULT</tt></span></td><td>Use this for default priority event sources. This
priority is used when adding timeout functions with the <a href="gobject-functions.html#function-gobject--timeout-add" title="gobject.timeout_add"><tt class="function">gobject.timeout_add</tt>()</a>
function. This priority is also used for events from the X
server.</td></tr><tr><td><span class="term"><tt class="literal">gobject.PRIORITY_HIGH_IDLE</tt></span></td><td>Use this for high priority idle functions. For example,
gobject.PRIORITY_HIGH_IDLE + 10 is used for resizing operations;
and, gobject.PRIORITY_HIGH_IDLE + 20, for redrawing
operations. (This is done to ensure that any pending resizes are
processed before any pending redraws, so that widgets are not
redrawn twice unnecessarily.)</td></tr><tr><td><span class="term"><tt class="literal">gobject.PRIORITY_DEFAULT_IDLE</tt></span></td><td>Use this for default priority idle functions. This
priority is used when adding idle functions with the <a href="gobject-functions.html#function-gobject--idle-add" title="gobject.idle_add"><tt class="function">gobject.idle_add</tt>()</a>
function.</td></tr><tr><td><span class="term"><tt class="literal">gobject.PRIORITY_LOW</tt></span></td><td>Use this for very low priority background
tasks.</td></tr></tbody></table></div><div class="refsect2" lang="en"><a name="gobject-signal-constants"></a><h3>GObject Signal Flag Constants</h3><p>The Signal Flag constants are a set of bit-flags that specify a
signal's behavior. The overall signal description outlines how especially
the <tt class="literal">RUN</tt> flags control the stages of a signal
emission.</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_RUN_FIRST</tt></span></td><td>Invoke the object method handler in the first emission
stage.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_RUN_LAST</tt></span></td><td>Invoke the object method handler in the third emission
stage.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_RUN_CLEANUP</tt></span></td><td>Invoke the object method handler in the last emission
stage.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_NO_RECURSE</tt></span></td><td>Signals being emitted for an object while currently
being in emission for this very object will not be emitted
recursively, but instead cause the first emission to be
restarted.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_DETAILED</tt></span></td><td>This signal supports "::detail" appendices to the
signal name upon handler connections and emissions.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_ACTION</tt></span></td><td>Action signals are signals that may freely be emitted
on alive objects from user code via the <a href="class-gobject.html#method-gobject--emit" title="gobject.GObject.emit"><tt class="methodname">gobject.emit</tt>()</a>
method and friends, without the need of being embedded into
extra code that performs pre or post emission adjustments on the
object. They can also be thought of as object methods which can
be called generically by third-party code.</td></tr><tr><td><span class="term"><tt class="literal">gobject.SIGNAL_NO_HOOKS</tt></span></td><td>No emissions hooks are supported for this
signal.</td></tr></tbody></table></div><div class="refsect2" lang="en"><a name="gobject-type-constants"></a><h3>GObject Built-in Type Constants</h3><p>The Built-in Type constants specify the pre-defined types used
by gobject.</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.TYPE_INVALID</tt></span></td><td>An invalid type, used as error return value in some
functions.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_NONE</tt></span></td><td>A fundamental type indicating no type.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_INTERFACE</tt></span></td><td>The fundamental type from which all interfaces are
derived.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_CHAR</tt></span></td><td>The fundamental type corresponding to a
character. This maps to a string in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_UCHAR</tt></span></td><td>The fundamental type corresponding to an unsigned
character. This maps to a string in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_BOOLEAN</tt></span></td><td>The fundamental type corresponding to a True or False
value. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_INT</tt></span></td><td>The fundamental type corresponding to an
integer. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_UINT</tt></span></td><td>he fundamental type corresponding to an unsigned
integer. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_LONG</tt></span></td><td>The fundamental type corresponding to a long
integer. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_ULONG</tt></span></td><td>The fundamental type corresponding to an unsigned
integer. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_INT64</tt></span></td><td>The fundamental type corresponding to an long long
integer. This maps to a long integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_UINT64</tt></span></td><td>The fundamental type corresponding to an unsigned long
long integer. This maps to a long integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_ENUM</tt></span></td><td>The fundamental type corresponding to an enumeration
type. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_FLAGS</tt></span></td><td>The fundamental type corresponding to a flag
type. This maps to an integer in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_FLOAT</tt></span></td><td>The fundamental type corresponding to a floating point
number. This maps to a float in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_DOUBLE</tt></span></td><td>The fundamental type corresponding to a double
floating point number. This maps to a float in Python.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_STRING</tt></span></td><td>The fundamental type corresponding to a string.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_POINTER</tt></span></td><td>The fundamental type corresponding to a pointer to an
anonymous type. This has no corresponding Python type.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_BOXED</tt></span></td><td>The fundamental type corresponding to a boxed object
type.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_PARAM</tt></span></td><td>The fundamental type corresponding to a GParamSpec
type.</td></tr><tr><td><span class="term"><tt class="literal">gobject.TYPE_OBJECT</tt></span></td><td>The fundamental type corresponding to a GObject
type.</td></tr></tbody></table></div><div class="refsect2" lang="en"><a name="gobject-version-constants"></a><h3>GObject Version Constants</h3><p>The Version constants specify the version of
<tt class="literal">GLIB</tt> used by PyGTK as a 3-tuple containing the major,
minor and patch release numbers.</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gobject.glib_version</tt></span></td><td>A 3-tuple containing (major, minor, patch) release
numbers.</td></tr></tbody></table></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="gobject-functions.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gobject-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="gtk-class-reference.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gobject Functions</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">The gtk Class Reference</td></tr></table></div></body></html>
|