/
lib64
/
python2.7
/
site-packages
/
gobject
/
Upload Filee
HOME
# -*- 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 # do a little dance to maintain API compatibility # as these were origianally defined here, and are # now defined in gobjectmodule.c G_MINFLOAT = _gobject.G_MINFLOAT G_MAXFLOAT = _gobject.G_MAXFLOAT G_MINDOUBLE = _gobject.G_MINDOUBLE G_MAXDOUBLE = _gobject.G_MAXDOUBLE G_MINSHORT = _gobject.G_MINSHORT G_MAXSHORT = _gobject.G_MAXSHORT G_MAXUSHORT = _gobject.G_MAXUSHORT G_MININT = _gobject.G_MININT G_MAXINT = _gobject.G_MAXINT G_MAXUINT = _gobject.G_MAXUINT G_MINLONG = _gobject.G_MINLONG G_MAXLONG = _gobject.G_MAXLONG G_MAXULONG = _gobject.G_MAXULONG G_MININT8 = _gobject.G_MININT8 G_MAXINT8 = _gobject.G_MAXINT8 G_MAXUINT8 = _gobject.G_MAXUINT8 G_MININT16 = _gobject.G_MININT16 G_MAXINT16 = _gobject.G_MAXINT16 G_MAXUINT16 = _gobject.G_MAXUINT16 G_MININT32 = _gobject.G_MININT32 G_MAXINT32 = _gobject.G_MAXINT32 G_MAXUINT32 = _gobject.G_MAXUINT32 G_MININT64 = _gobject.G_MININT64 G_MAXINT64 = _gobject.G_MAXINT64 G_MAXUINT64 = _gobject.G_MAXUINT64 G_MAXSIZE = _gobject.G_MAXSIZE G_MAXSSIZE = _gobject.G_MAXSSIZE G_MINOFFSET = _gobject.G_MINOFFSET G_MAXOFFSET = _gobject.G_MAXOFFSET