[pygtk] Dynamically adding glade widgets?

Filip Van Raemdonck mechanix at debian.org
Fri Feb 29 08:33:39 WST 2008


Hi Mitko,

On Thu, Feb 28, 2008 at 1:50 AM, Mitko Haralanov <mitko at qlogic.com> wrote:
> I used glade to design my GUI and in one of the dialogs I have a HBox
>  with only one cell. In that cell, I have a tree of widgets which form
>  the content of the cell.
>
>  What I want to have is a button, which the user can click and the
>  action would be that a new tree of widgets (identical to the original
>  one) would be packed at the end of the HBox.
>
>  Can this be done using some glade trick or do I have to build the tree
>  of widgets in the Python "clicked" signal handler?

It's not a trick, it's builtin functionality in glade.
I've written a brief article for a demo application that you can find
at my weblog: http://slider.rack66.net/~mechanix/blog/

I hope it gets you started.


KR,

Filip

-- 
Through the lens - http://photopassion.be/


More information about the pygtk mailing list