Some strange characters appeared on my screen... Probably on Sunday 10 of 
August 2003 23:24, Christian Reis typed:
> > 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?
>
> You'll probably need to either use threads or use something like an
> io_watch (or whatever gtk2 calls them ;).

I'll try threads, but I must read a bit about it (yes, I'm pure 
pygtk-wannabie ;-))

> > 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.
>
> You lost me here. Note that running mainquit() does *not* cause your
> window to hide -- it only hides in this situation, *normally*, when
> the process itself exits ;) -- You need to call hide() explicitly if you
> are keeping your program running.

I didn't know that - that's why my code doesn't work. But hide() isn't good 
either, because it doesn't cause reinitialization of some variables. I 
repeat - my main aim is to `restart' window, but with *new* values which 
are used by labels, entries and so on. I need to `destroy_all()' and 
`init_all()'. ;-) Maybe hide() could help here, but there needs to be one 
more method which would apply everything from the beginning once more.

> > P.S. Would be that a big problem to create a search engine of list
> > archive? Believe me, find there anything isn't easy...
>
> No, but most of the really useful answers are in the FAQ down there ;)

I have lots to read... :-)

-- 
_________________________________________________________________________
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