pybank r88 - in trunk: . bank



Author: johan
Date: Fri Dec  5 14:30:14 2008
New Revision: 88
URL: http://svn.gnome.org/viewvc/pybank?rev=88&view=rev

Log:
Update the test, gtk.Window is mapped as Gtk.Window

Modified:
   trunk/bank/btypes.py
   trunk/gtktest.py

Modified: trunk/bank/btypes.py
==============================================================================
--- trunk/bank/btypes.py	(original)
+++ trunk/bank/btypes.py	Fri Dec  5 14:30:14 2008
@@ -220,7 +220,9 @@
         elif method.isMethod():
             pass
         else:
-            raise AssertionError
+            break
+            raise AssertionError("No constructor for %s.%s" % (
+                namespaceName, className))
         methodName = method.getName()
         setattr(newType, methodName, new.instancemethod(Method(method, className),
                                                         None, newType))

Modified: trunk/gtktest.py
==============================================================================
--- trunk/gtktest.py	(original)
+++ trunk/gtktest.py	Fri Dec  5 14:30:14 2008
@@ -1,11 +1,12 @@
 import pygtk
 pygtk.require('2.0') 
 
+import gtk
 import bank
 
 import Gtk
 
-window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
+window = Gtk.Window()
 window.connect('delete-event', lambda *args: Gtk.main_quit())
 button = Gtk.Button()
 button.set_label("hello!")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]