Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/test_fixed.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_fixed.py')
-rw-r--r--test_fixed.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test_fixed.py b/test_fixed.py
new file mode 100644
index 0000000..858d0c3
--- /dev/null
+++ b/test_fixed.py
@@ -0,0 +1,20 @@
+import gtk
+
+def _destroy_cb(widget, data=None):
+ gtk.main_quit()
+
+
+window = gtk.Window()
+window.connect("destroy", _destroy_cb)
+
+fixed = gtk.Fixed()
+window.add(fixed)
+
+button = gtk.Button(label='copy')
+fixed.put(button, 0, 0)
+
+button = gtk.Button(label='paste')
+fixed.put(button, 10, 10)
+
+window.show_all()
+gtk.main()