Changeset 575:a54baa5b89c3 for src/mlx/gui
- Timestamp:
- 12/07/14 15:07:24 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/common.py
r554 r575 1 2 from mlx.common import * 1 3 2 4 import mlx.const as _const … … 26 28 appIndicator = False 27 29 28 if os.name=="nt" or "FORCE_PYGTK" in os.environ:30 if not pygobject: 29 31 print "Using PyGTK" 30 32 pygobject = False … … 32 34 import gtk.gdk as gdk 33 35 import gtk 34 import gobject35 36 import pango 37 36 38 try: 37 39 import appindicator … … 105 107 return str(text) 106 108 107 else: 108 print "Using PyGObject" 109 pygobject = True 109 else: # pygobject 110 110 from gi.repository import Gdk as gdk 111 111 from gi.repository import GdkPixbuf as gdkPixbuf 112 112 from gi.repository import Gtk as gtk 113 from gi.repository import GObject as gobject114 113 from gi.repository import AppIndicator3 as appindicator 115 114 from gi.repository import Pango as pango 115 116 116 appIndicator = True 117 117 118 118 119 MESSAGETYPE_ERROR = gtk.MessageType.ERROR
Note:
See TracChangeset
for help on using the changeset viewer.