Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/test_fixed.py
blob: 858d0c309fb6b7cbce3f2c17c307e9dc8c560dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()