diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2016-04-11 22:09:16 -0400 |
---|---|---|
committer | Seth Hitefield <sdhitefield@gmail.com> | 2016-05-24 11:11:33 -0400 |
commit | e66cfa31ff52b95a9c3df27c8a1f3b02bef6db3d (patch) | |
tree | e6b38580dfe554f83a92a24f9b0224d462b4ad97 /grc/core/Platform.py | |
parent | c73ee1053f27bdae00b9cdeb12cabfab37854425 (diff) |
grc: Main window opens with pygobject and gtk3. Still throws tons of errors.
Diffstat (limited to 'grc/core/Platform.py')
-rw-r--r-- | grc/core/Platform.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/core/Platform.py b/grc/core/Platform.py index 5bcf79c4b2..dfb60ee6a5 100644 --- a/grc/core/Platform.py +++ b/grc/core/Platform.py @@ -219,8 +219,9 @@ class Platform(Element): color = n.find('color') or '' try: - import gtk # ugly but handy - gtk.gdk.color_parse(color) + import gi # ugly but handy + from gi.repository import Gdk + Gdk.color_parse(color) except (ValueError, ImportError): if color: # no color is okay, default set in GUI print >> sys.stderr, 'Warning: Can\'t parse color code "{}" for domain "{}" '.format(color, key) |