Le Fri 05/09/2008 à 15:33 Lieven van der Heide à écrit: > Hi, > > I can't say that I tried it out, but my guess would be that that child > is the label you put on the tab button (ie. the thing you are going to > drag in order to reorder the tabs). > > Greets, > > Lieven. >
Thanks for the help. I don't think it was the label, but instead the content of the tab. I could finally find some example on the Internet: http://www.nabble.com/gtk.Notebook-dnd-to-other-widgets-td10318298.html The code looks like: def __init__(self): # Create a new notebook, place the position of the tabs self.notebook = gtk.Notebook() self.notebook.set_show_tabs(True) self.notebook.set_show_border(False) # Let's append a bunch of pages to the notebook for i in range(5): bufferf = "Append Frame %d" % (i+1) bufferl = "Page %d" % (i+1) frame = gtk.Frame(bufferf) frame.set_border_width(10) frame.set_size_request(100, 75) frame.show() label = gtk.Label(bufferf) frame.add(label) label.show() label = gtk.Label(bufferl) self.notebook.append_page(frame, label) self.notebook.set_tab_reorderable(frame, True) Thanks again. Mildred -- Mildred Ki'Lya ╭───────── mildred593@online.fr ────────── │ Jabber, GoogleTalk: <[EMAIL PROTECTED]> │ Site: <http://ki.lya.online.fr> GPG ID: 9A7D 2E2B │ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
