Re: Notebook: Reorderable tabs, how does it work ?



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.

On 9/3/08, Mildred Ki'Lya <ml mildred593 online fr> wrote:
> Hi,
>
>  I have an issue with the Notebook widget. It seems that tabs can be
>  reorderable, but I can't see how to do it.
>
>  http://library.gnome.org/devel/gtk/2.13/GtkNotebook.html#gtk-notebook-set-tab-reorderable
>  http://www.pygtk.org/docs/pygtk/class-gtknotebook.html#method-gtknotebook--set-tab-reorderable
>
>  There is a function `set_tab_reorderable', but it takes a `child'
>  argument, and the documentation is not very clear about it.
>
>  I tried to do something like
>
>     self.notebook = gtk.Notebook()
>     self.notebook.set_tab_reorderable(self.notebook, True)
>
>  but it doesn't work at all.
>
>  I couldn't find any more information on Google about it either.
>
>  Here is my source code (in Python):
>  http://pastebin.com/f4bb4e03b
>  I took it almost completely from the example in the tutorial:
>  http://www.pygtk.org/pygtk2tutorial/sec-Notebooks.html
>
>
>  Thanks for any ideas on how to proceed.
>
>  Mildred
>
>  --
>  Mildred Ki'Lya
>  ?───────── mildred593@online.fr ──────────
>  │ Jabber, GoogleTalk: <mildred jabber fr>
>  │ 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
>  gtk-list gnome org
>  http://mail.gnome.org/mailman/listinfo/gtk-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]