#!/usr/bin/python2
import gtk, gobject
def rescan():
    for box in table.get_children():
        for child in box.get_children():
            box.remove(child)

# main program
window = gtk.Window(gtk.WINDOW_TOPLEVEL)

table = gtk.Table(1, 2, gtk.FALSE)
window.add(table)

box1=gtk.VBox(gtk.FALSE)
box2=gtk.VBox(gtk.FALSE)

l1=gtk.Label("A long top label")
l2=gtk.Label("A label")
l3=gtk.Label("Another long label")
l4=gtk.Label("Another label")

box1.pack_start(l1, gtk.TRUE, gtk.TRUE, 0)
box1.pack_start(l2, gtk.FALSE, gtk.FALSE, 0)
box2.pack_start(l3, gtk.TRUE, gtk.TRUE, 0)
box2.pack_start(l4, gtk.FALSE, gtk.FALSE, 0)

table.attach(box1,0,1,0,1,0,0)
table.attach(box2,0,1,1,2,0,0)

window.show_all()

window.freeze_notify()
table.freeze_notify()
box1.freeze_notify()
box2.freeze_notify()
l1.freeze_notify()
l2.freeze_notify()
l3.freeze_notify()
l4.freeze_notify()
rescantimer=gtk.timeout_add(5000, rescan)
gtk.main()

