Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/stateview.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 00:58:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:40 (GMT)
commit1394eb71f8e677990ca26d3be4e1fb1af708f950 (patch)
tree6d4740b8ad9ceabc090d45c52f9342c4cd3aa966 /stateview.py
parent3b2c6fa2d075bd77f22202fdacd480b6dcd26f9b (diff)
Port to Gtk3: Initial run of py-giconvert.sh and sugar-convert.sh
Diffstat (limited to 'stateview.py')
-rw-r--r--stateview.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/stateview.py b/stateview.py
index b27aa6e..974201c 100644
--- a/stateview.py
+++ b/stateview.py
@@ -6,7 +6,7 @@
# The class StateView draw how many questions there are in the game,
# how many have been read, and how many have been replied.
-import gtk
+from gi.repository import Gtk
import cairo
import rsvg
import model
@@ -73,10 +73,10 @@ class StateView():
def main():
- window = gtk.Window()
+ window = Gtk.Window()
_model = model.GameModel()
state_view = StateView(_model, 10, 10, 20)
- area = gtk.DrawingArea()
+ area = Gtk.DrawingArea()
# add fake questions to test
_model.data['questions'].append('')
@@ -97,9 +97,9 @@ def main():
area.connect('expose_event', expose, state_view)
window.add(area)
- window.connect("destroy", gtk.main_quit)
+ window.connect("destroy", Gtk.main_quit)
window.show_all()
- gtk.main()
+ Gtk.main()
if __name__ == "__main__":
main()