Created
June 30, 2011 17:17
-
-
Save martin12333/1056691 to your computer and use it in GitHub Desktop.
a simple script that shows a window using GTK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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