Viewing file: constants.py (2.74 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# -*- Mode: Python; py-indent-offset: 4 -*- # pygobject - Python bindings for the GObject library # Copyright (C) 2006-2007 Johan Dahlin # # gobject/constants.py: GObject type constants # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 # USA
import sys
import gobject._gobject _gobject = sys.modules['gobject._gobject']
# TYPE_INVALID defined in gobjectmodule.c TYPE_NONE = _gobject.type_from_name('void') TYPE_INTERFACE = _gobject.type_from_name('GInterface') TYPE_CHAR = _gobject.type_from_name('gchar') TYPE_UCHAR = _gobject.type_from_name('guchar') TYPE_BOOLEAN = _gobject.type_from_name('gboolean') TYPE_INT = _gobject.type_from_name('gint') TYPE_UINT = _gobject.type_from_name('guint') TYPE_LONG = _gobject.type_from_name('glong') TYPE_ULONG = _gobject.type_from_name('gulong') TYPE_INT64 = _gobject.type_from_name('gint64') TYPE_UINT64 = _gobject.type_from_name('guint64') TYPE_ENUM = _gobject.type_from_name('GEnum') TYPE_FLAGS = _gobject.type_from_name('GFlags') TYPE_FLOAT = _gobject.type_from_name('gfloat') TYPE_DOUBLE = _gobject.type_from_name('gdouble') TYPE_STRING = _gobject.type_from_name('gchararray') TYPE_POINTER = _gobject.type_from_name('gpointer') TYPE_BOXED = _gobject.type_from_name('GBoxed') TYPE_PARAM = _gobject.type_from_name('GParam') TYPE_OBJECT = _gobject.type_from_name('GObject') TYPE_PYOBJECT = _gobject.type_from_name('PyObject') TYPE_UNICHAR = TYPE_UINT
# This part is generated by generate-constants.c G_MINFLOAT = 0.000000 G_MINFLOAT = 0.000000 G_MAXFLOAT = 340282346638528859811704183484516925440.000000 G_MINDOUBLE = 0.000000 G_MAXDOUBLE = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 G_MINSHORT = -32768 G_MAXSHORT = 32767 G_MAXUSHORT = 65535 G_MININT = -2147483648 G_MAXINT = 2147483647 G_MAXUINT = 4294967295 G_MINLONG = -9223372036854775808L G_MAXLONG = 9223372036854775807L G_MAXULONG = 18446744073709551615L
|