/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to window.py

  • Committer: Curtis Hovey
  • Date: 2011-07-31 17:38:30 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110731173830-mjhimj25p2ahjxfa
Update diff to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
 
2
from gi.repository import Gdk
2
3
from gi.repository import Gtk
3
4
 
 
5
 
4
6
class Window(Gtk.Window):
5
7
 
6
8
    def __init__(self, parent=None):
7
 
        GObject.GObject.__init__(self, Gtk.WindowType.TOPLEVEL)
 
9
        Gtk.Window.__init__(self, type=Gtk.WindowType.TOPLEVEL)
8
10
        self._parent = parent
9
11
 
10
12
        self.connect('key-press-event', self._on_key_press)