home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / python-support / python-gobject / gtk-2.0 / gobject / constants.py < prev    next >
Encoding:
Text File  |  2009-06-15  |  2.7 KB  |  66 lines

  1. # -*- Mode: Python; py-indent-offset: 4 -*-
  2. # pygobject - Python bindings for the GObject library
  3. # Copyright (C) 2006-2007 Johan Dahlin
  4. #
  5. #   gobject/constants.py: GObject type constants
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Lesser General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2.1 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Lesser General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public
  18. # License along with this library; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  20. # USA
  21.  
  22. import sys
  23.  
  24. import gobject._gobject
  25. _gobject = sys.modules['gobject._gobject']
  26.  
  27. # TYPE_INVALID defined in gobjectmodule.c
  28. TYPE_NONE = _gobject.type_from_name('void')
  29. TYPE_INTERFACE = _gobject.type_from_name('GInterface')
  30. TYPE_CHAR = _gobject.type_from_name('gchar')
  31. TYPE_UCHAR = _gobject.type_from_name('guchar')
  32. TYPE_BOOLEAN = _gobject.type_from_name('gboolean')
  33. TYPE_INT = _gobject.type_from_name('gint')
  34. TYPE_UINT = _gobject.type_from_name('guint')
  35. TYPE_LONG = _gobject.type_from_name('glong')
  36. TYPE_ULONG = _gobject.type_from_name('gulong')
  37. TYPE_INT64 = _gobject.type_from_name('gint64')
  38. TYPE_UINT64 = _gobject.type_from_name('guint64')
  39. TYPE_ENUM = _gobject.type_from_name('GEnum')
  40. TYPE_FLAGS = _gobject.type_from_name('GFlags')
  41. TYPE_FLOAT = _gobject.type_from_name('gfloat')
  42. TYPE_DOUBLE = _gobject.type_from_name('gdouble')
  43. TYPE_STRING = _gobject.type_from_name('gchararray')
  44. TYPE_POINTER = _gobject.type_from_name('gpointer')
  45. TYPE_BOXED = _gobject.type_from_name('GBoxed')
  46. TYPE_PARAM = _gobject.type_from_name('GParam')
  47. TYPE_OBJECT = _gobject.type_from_name('GObject')
  48. TYPE_PYOBJECT = _gobject.type_from_name('PyObject')
  49. TYPE_UNICHAR = TYPE_UINT
  50.  
  51. # This part is generated by generate-constants.c
  52. G_MINFLOAT = 0.000000
  53. G_MINFLOAT = 0.000000
  54. G_MAXFLOAT = 340282346638528859811704183484516925440.000000
  55. G_MINDOUBLE = 0.000000
  56. G_MAXDOUBLE = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000
  57. G_MINSHORT = -32768
  58. G_MAXSHORT = 32767
  59. G_MAXUSHORT = 65535
  60. G_MININT = -2147483648
  61. G_MAXINT = 2147483647
  62. G_MAXUINT = 4294967295
  63. G_MINLONG = -2147483648L
  64. G_MAXLONG = 2147483647L
  65. G_MAXULONG = 4294967295L
  66.