source: src/mlx/gui/common.py@ 28:66fcd9294ab0

Last change on this file since 28:66fcd9294ab0 was 28:66fcd9294ab0, checked in by István Váradi <ivaradi@…>, 12 years ago

Separated the GUI code into a separate package

File size: 555 bytes
Line 
1# Common things for the GUI
2
3import os
4
5appIndicator = False
6
7if os.name=="nt" or "FORCE_PYGTK" in os.environ:
8 print "Using PyGTK"
9 pygobject = False
10 import pygtk
11 import gtk
12 import gobject
13 try:
14 import appindicator
15 appIndicator = True
16 except Exception, e:
17 pass
18else:
19 print "Using PyGObject"
20 pygobject = True
21 from gi.repository import Gtk as gtk
22 from gi.repository import GObject as gobject
23 from gi.repository import AppIndicator3 as appindicator
24 appIndicator = True
25
26import cairo
27
Note: See TracBrowser for help on using the repository browser.