Hi,

I'm writing because of two problems. At first, I wanted to make a 
MessageDialog with a progress bar, while opening a process using popen2. My 
gtk.main() in this case stops executing program, so I can't move further. I 
think there *must* be something like gtk.main(), but letting go through 
whole program. Or mayber I'm wrong?

Next problem is kind of restarting application. I need it to re-apply some 
variables (e.g. used in Labels) and the simplest way is to restart gtk 
loop. So I wrote as follows:
#v+
if __name__ == "__main__":
    Config()
    Lang = Lang()
    Poldek = Poldek()
    while 1:
        MisInstance = Mis()
        main()
        del MisInstance
#v-
If I want just to reset program, I do mainquit(). But it doesn't work as 
expected - window *doesn't* close, and new one starts, but with old values. 
Right now, I have no idea what to do now, so maybe somebody would share his 
expierience.

P.S. Would be that a big problem to create a search engine of list archive? 
Believe me, find there anything isn't easy...

Best regards,
-- 
_________________________________________________________________________
Michal Chruszcz -=- Souls hacker -=- Seen at http://troll.one.pl/?gallery
To follow the path: look to the master, follow the master,
         walk with the master, see through the master, become the master.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to