ubudog
January 30th, 2010, 07:23 PM
Hello, I am very new to python, just started yesterday, and have managed to get a window up. I want to make a button inside the window. I have tried
button = gtk.Button() and it still doesn't work. Is there anything else I need to do? This is my current code:
#!/usr/bin/python
import gtk
import pygtk
window = gtk.Window()
window.set_title("My Program")
button = gtk.Button()
window.show_all()
gtk.main()
Thanks for any help
button = gtk.Button() and it still doesn't work. Is there anything else I need to do? This is my current code:
#!/usr/bin/python
import gtk
import pygtk
window = gtk.Window()
window.set_title("My Program")
button = gtk.Button()
window.show_all()
gtk.main()
Thanks for any help