pybank r68 - trunk



Author: johan
Date: Thu Aug 21 19:17:07 2008
New Revision: 68
URL: http://svn.gnome.org/viewvc/pybank?rev=68&view=rev

Log:
Move setting the label to a separate call

Modified:
   trunk/gtktest.py

Modified: trunk/gtktest.py
==============================================================================
--- trunk/gtktest.py	(original)
+++ trunk/gtktest.py	Thu Aug 21 19:17:07 2008
@@ -3,7 +3,8 @@
 import Gtk
 
 window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
-button = Gtk.Button("hello!")
+button = Gtk.Button()
+button.set_label("hello!")
 window.add(button)
 window.show_all()
 



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