Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Tk mainloop()

Reply
Thread Tools

Re: Tk mainloop()

 
 
dan
Guest
Posts: n/a
 
      07-20-2003
re my prev response -- sleep() doesn't 'allow Tkinter thread to run',
but it might be necessary to let some system services or something run
in the background. Actually I'm going to take it out and see what
happens. Just calling youroot.update() should be enough to let
Tkinter do its thing.

quick comment: if Py is indeed going to take over the world of
programming, which I for one applaud, it needs to get its threading
stuff together. Seems pretty funky right now. Also Tk is nice but a
C-level native set of GUI commands that work across platforms but use
platform-native calls would be a great improvement.

Just my 2c -dbm

"Petr Evstratov" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hi, I have a question: how do you execute an arbitrary function in Tk fooBar.mainloop()?
>
> I need to change the contents of a label every second, but I think I will also use some other functions as well...
>
> I hope that someone will answer my question, because I have been looking for an answer for 3 days, asking people, searching Google... and still have not found anything useful...
>
> Thanks, Pete

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments