Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente Lahaye <tch@sugarlabs.org>2013-01-15 20:42:21 (GMT)
committer Martin Abente Lahaye <tch@sugarlabs.org>2013-01-15 20:42:21 (GMT)
commit59d2a06c0e079aa920d3b4f1d81a81e537ea0151 (patch)
tree5ec606a07f80fb26a8dad7249c469d6d901f7444
parente7bcea9b73b3870c09fbb8b913978e7c3139c493 (diff)
gtk helloworld
-rwxr-xr-x006-gtk-helloworld/example.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/006-gtk-helloworld/example.py b/006-gtk-helloworld/example.py
new file mode 100755
index 0000000..42e53ef
--- /dev/null
+++ b/006-gtk-helloworld/example.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+import gtk
+
+
+class MyApp():
+
+ def __init__(self):
+ window = gtk.Window()
+ window.show()
+
+if __name__ == "__main__":
+ my_app = MyApp()
+ gtk.main()