[pygtk] Cloning Glade notebook tabs?
John Pye
john.pye at student.unsw.edu.au
Tue Jan 31 21:22:43 WST 2006
Hi Yann,
Thanks for that. The issue here was that I needed to realise that I
needed to define my widget outside the hierarchy of my 'main window'
widget, in order the widget wasn't instantiated at load-time. I needed
to create a bogus window containing the 'template' for my new notebook
tab, and load the 'template' defintion from there, as-needed.
Cheers
JP
Yann Le Boulanger wrote:
> John Pye wrote:
>
>> Hi all
>>
>> I have a GUI which has a 'notebook' with two fixed tabs that stay there
>> all the time. I want to add extra 'templated' tabs at the end of the
>> notebook, at runtime.
>>
>> If I want to define the template for the 'extra' tabs in Glade, how to I
>> go about adding those tabs at runtime, one by one?
>>
>> Do I need to invoke gtk.glade.XML each time? How do I define the
>> template tab in my Glade file?
>>
>> Cheers
>> JP
>>
>
> there is a FAQ entry about that:
> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq22.012.htp
>
> Yann
>
More information about the pygtk
mailing list