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/gui/Port.py | |
parent | c73ee1053f27bdae00b9cdeb12cabfab37854425 (diff) |
grc: Main window opens with pygobject and gtk3. Still throws tons of errors.
Diffstat (limited to 'grc/gui/Port.py')
-rw-r--r-- | grc/gui/Port.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/Port.py b/grc/gui/Port.py index 6314b7ede8..02cef5d04b 100644 --- a/grc/gui/Port.py +++ b/grc/gui/Port.py @@ -17,9 +17,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -import pygtk -pygtk.require('2.0') -import gtk +import gi +gi.require_version('Gtk', '3.0') +from gi.repository import Gtk from . import Actions, Colors, Utils from .Constants import ( @@ -115,7 +115,7 @@ class Port(_Port, Element): Element.create_labels(self) self._bg_color = Colors.get_color(self.get_color()) # create the layout - layout = gtk.DrawingArea().create_pango_layout('') + layout = Gtk.DrawingArea().create_pango_layout('') layout.set_markup(Utils.parse_template(PORT_MARKUP_TMPL, port=self, font=PORT_FONT)) self.w, self.h = layout.get_pixel_size() self.W = 2 * PORT_LABEL_PADDING + self.w |