GladeGen and initializing widgets at startup

2006-05-06 Thread Aengys
Hi all,

Being struck by article 7421 of the linux journal
(http://www.linuxjournal.com/article/7421), I'll tried to give it a go.
Mainly because I have done some experiments with Glade and found that
it is really easy to create good looking GUIs. On the other end, there
is the GladeGen tool which helps you in building a skeleton in Python
such that you only have to code the events. But being a newbie with
Python as well as Glade I'm heavily dependent on documentation (mainly
online  a big part being usenet). There I found that almost nobody
seems to use it, or they don't have any problems with it. In this group
there is only thread that has a reference to it!

So my questions:

Does anybody use GladeGen? If not, why?

For those that do use it, where do I write the code which has to be
executed when a window loads?  The thing is pretty basic here. I have a
window with a treeview, and I simply want that treeview filled up when
opening the window.

Hoping for some echos...

Aengys

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GladeGen and initializing widgets at startup

2006-05-07 Thread Aengys
Thank you for your reply!

I finally managed to do what I wanted. Maybe a little side-remark here.
In the article you have said that all changes to the init-method are
lost once you regenerate the file. I have tried it, and indeed all my
changes were lost (which I had backed up before). So I've created a
method which do the initialization and I call this method from the
init-method. Maybe it would be a nice extention to include such a
method by default; a method you can fill with all the code that needs
to be done when initializing the window I'm not yet so familiar
with the whole process, but I might have a look at it in the future.
I'll keep you updated on that if it happens.

Regarding the extension of the show method: how do I do that? And what
benefit does it have to the solution mentioned above?

Aengys

-- 
http://mail.python.org/mailman/listinfo/python-list