Commits

Ronny Pfannschmidt committed 2e9f09f

test and fix WindowView.set_title

Comments (0)

Files changed (2)

pygtkhelpers/delegates.py

 class WindowView(ToplevelView):
     """A View that is a Window"""
     def set_title(self, title):
-        self.get_toplevel().set_title(title)
+        self.widget.set_title(title)
 

tests/test_delegates.py

     w = WindowView()
     raises(AttributeError, w.add_slave, S(), 'banana')
 
+def test_set_title():
+    w = WindowView()
+    w.set_title('test')