Rev | Line | |
---|
[28] | 1 | # Common things for the GUI
|
---|
| 2 |
|
---|
| 3 | import os
|
---|
| 4 |
|
---|
| 5 | appIndicator = False
|
---|
| 6 |
|
---|
| 7 | if 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
|
---|
| 18 | else:
|
---|
| 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 |
|
---|
| 26 | import cairo
|
---|
| 27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.