[pygtk] Window waits to complete code brfore show
daily.cron at gmail.com
Thu Mar 1 15:50:03 WST 2007
I used your solutions but it doesn't solve my issue completely.
I wrote a program like a wizard, I'm running the first window and all ok,
then I have a "Next" button, that hide the first window and running a
function that create the next window.
The function is creating the all widget (image, labels, buttonbox and
progressbar), the I issue window.show_all() and then I'm using another
python commands (to call the ping function), in this function I added this:
and I also try to add this pending before calling the "PING" function but
got the same result.
The result is I'm getting the window with no widgets (buttons, image,
labels) only a white window with the progressbar shadow in gray, when the
"PING" function ends the widgets is shown.
I try this with the time.sleep(5) function and got the same results.
On 2/27/07, Volker Helm <Helm.volker at gmx.de> wrote:
> Hi Miki,
> just put the gtk code into a class as seen here:
> put the rest of the code into another class or function, so you can call
> it from the first gtk class.
> Then it will show first the window with the label, after it you call
> import pygtk
> class gtkping(object):
> def delete_event(self, widget, event, data=3DNone):
> return False
> def __init__(self):
> w =3D gtk.Window()
> w.connect("delete_event", self.delete_event)
> l =3D gtk.Label("pppp")
> #now you can call your ping functions
> def main(self):
> def ping...
> if __name__ =3D=3D "__main__":
> test =3D gtkping()
> "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
> Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
> pygtk mailing list pygtk at daa.com.au
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pygtk