Skip to content

Instantly share code, notes, and snippets.

@martin12333
Created June 30, 2011 17:17
Show Gist options
  • Save martin12333/1056691 to your computer and use it in GitHub Desktop.
Save martin12333/1056691 to your computer and use it in GitHub Desktop.
a simple script that shows a window using GTK
#!/usr/bin/env python
# from wikipedia
import gtk
def create_window():
window = gtk.Window()
window.set_default_size(200, 200)
window.connect('destroy', gtk.main_quit)
label = gtk.Label('Hello World')
window.add(label)
label.show()
window.show()
create_window()
gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment