summaryrefslogtreecommitdiff
path: root/grc/gui/Element.py
diff options
context:
space:
mode:
authorSeth Hitefield <sdhitefield@gmail.com>2016-04-11 22:09:16 -0400
committerSeth Hitefield <sdhitefield@gmail.com>2016-05-24 11:11:33 -0400
commite66cfa31ff52b95a9c3df27c8a1f3b02bef6db3d (patch)
treee6b38580dfe554f83a92a24f9b0224d462b4ad97 /grc/gui/Element.py
parentc73ee1053f27bdae00b9cdeb12cabfab37854425 (diff)
grc: Main window opens with pygobject and gtk3. Still throws tons of errors.
Diffstat (limited to 'grc/gui/Element.py')
-rw-r--r--grc/gui/Element.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/grc/gui/Element.py b/grc/gui/Element.py
index 9385424772..3f6017def7 100644
--- a/grc/gui/Element.py
+++ b/grc/gui/Element.py
@@ -20,7 +20,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
from Constants import LINE_SELECT_SENSITIVITY
from Constants import POSSIBLE_ROTATIONS
-import gtk
+import gi
+gi.require_version('Gtk', '3.0')
+from gi.repository import Gtk
+from gi.repository import Gdk
class Element(object):
@@ -38,9 +41,11 @@ class Element(object):
self.set_coordinate((0, 0))
self.clear()
self.set_highlighted(False)
- self.line_attributes = [
- 0, gtk.gdk.LINE_SOLID, gtk.gdk.CAP_BUTT, gtk.gdk.JOIN_MITER
- ]
+ self.line_attributes = []
+ """ # No idea where this is in pygobject
+ 0, Gdk.LINE_SOLID, Gdk.CAP_BUTT, Gdk.JOIN_MITER
+ ]"""
+
def is_horizontal(self, rotation=None):
"""