source: src/mlx/gui/common.py@ 31:c9ed7a60bf3b

Last change on this file since 31:c9ed7a60bf3b was 29:5bcc0ef808c5, checked in by István Váradi <ivaradi@…>, 13 years ago

The status icon and hiding/showing the window works

File size: 622 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.gdk as gdk
12 import gtk
13 import gobject
14 try:
15 import appindicator
16 appIndicator = True
17 except Exception, e:
18 pass
19else:
20 print "Using PyGObject"
21 pygobject = True
22 from gi.repository import Gdk as gdk
23 from gi.repository import Gtk as gtk
24 from gi.repository import GObject as gobject
25 from gi.repository import AppIndicator3 as appindicator
26 appIndicator = True
27
28import cairo
29
Note: See TracBrowser for help on using the repository browser.