|
I'm using pygtk 0.6 and WinGTK 1.3 (gtk1.3.dll) and
Python 2.1. My OS is Windows 2000. I also
have GIMP and Glade for Windows installed(Which run fine).
When I try running the code below, the script
hangs.
Any ideas?
Thanks,
Greg
---------------------------------------------------------------------------------------------
# this based on a translation of "Hello World III"
from the GTK manual,
# using gtk.py from gtk import
*
# importing all the widgets from gtk
window = GtkWindow(WINDOW_TOPLEVEL) # create a top
level window
window.connect("destroy", mainquit) # quit the event loop on destruction window.set_border_width(10) # set padding round child widget button = GtkButton("Hello World") # A
button with the "Hello World"
label
window.add(button) # add button to window window.show_all()
# Show the window with his
widgets
mainloop() # enter the main event loop |
