1
1
# -*- Mode: Python; py-indent-offset: 4 -*-
11
# fixes weird linker bugs on nvidia
14
sys.setdlopenflags(dl.RTLD_LAZY|dl.RTLD_GLOBAL)
5
18
# For broken embedded programs which forgot to call Sys_SetArgv
6
19
if not hasattr(sys, 'argv'):
12
25
ver = getattr(_gobject, 'pygobject_version', ())
13
26
if ver < (2, 11, 1):
14
raise ImportError("PyGTK requires PyGObject 2.11.1 or higher, but %s was found" % (ver,))
27
raise ImportError("PyClutter requires PyGObject 2.11.1 or higher, but %s was found" % (ver,))
16
29
if 'clutter._clutter' in sys.modules:
17
30
_clutter = sys.modules['clutter._clutter']
19
32
from clutter import _clutter
21
43
# use the pygtk module lazy loading stuff
22
44
from gtk._lazyutils import LazyNamespace, LazyModule
45
# and our own for the deprecation warnings
46
from clutter.deprecation import _Deprecated, _DeprecatedConstant
52
sys_path = sys.path[:]
56
except RuntimeError, e:
58
warnings.warn(str(e), _clutter.Warning)
60
if sys.path != sys_path:
61
sys.path[:] = sys_path
24
63
keysyms = LazyModule('keysyms', locals())
28
from clutter._clutter import *
30
67
__version__ = _clutter.__version__
31
68
MAX_ALPHA = _clutter.MAX_ALPHA
70
from clutter._clutter import *
72
timeline_new_for_duration = _Deprecated(_clutter, 'Timeline', 'timeline_new_for_duration', 'clutter')
73
rectangle_new_with_color = _Deprecated(_clutter, 'Rectangle', 'rectangle_new_with_color', 'clutter')
75
del _Deprecated, _DeprecatedConstant