Changeset 998:6fda08fc895b for src/mlx/gui/common.py
- Timestamp:
- 07/04/19 18:08:19 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/common.py
r997 r998 24 24 gi.require_version("Gdk", "3.0") 25 25 from gi.repository import Gdk 26 from gi.repository import GdkPixbuf as gdkPixbuf26 from gi.repository import GdkPixbuf 27 27 gi.require_version("Gtk", "3.0") 28 28 from gi.repository import Gtk 29 29 try: 30 30 gi.require_version("AppIndicator3", "0.1") 31 from gi.repository import AppIndicator3 as appindicator31 from gi.repository import AppIndicator3 32 32 appIndicator = True 33 33 except: 34 34 pass 35 from gi.repository import Pango as pango35 from gi.repository import Pango 36 36 37 37 … … 75 75 POLICY_ALWAYS = Gtk.PolicyType.ALWAYS 76 76 77 WEIGHT_NORMAL = pango.Weight.NORMAL78 WEIGHT_BOLD = pango.Weight.BOLD77 WEIGHT_NORMAL = Pango.Weight.NORMAL 78 WEIGHT_BOLD = Pango.Weight.BOLD 79 79 80 80 WINDOW_STATE_ICONIFIED = Gdk.WindowState.ICONIFIED … … 95 95 SELECTION_MULTIPLE = Gtk.SelectionMode.MULTIPLE 96 96 97 pixbuf_new_from_file = gdkPixbuf.Pixbuf.new_from_file97 pixbuf_new_from_file = GdkPixbuf.Pixbuf.new_from_file 98 98 99 99 import codecs
Note:
See TracChangeset
for help on using the changeset viewer.