Tkinter and asyncronous socket
- From: maxlosblob@xxxxxxxxx
- Date: Wed, 26 Nov 2008 03:13:05 -0800 (PST)
Hi all, I'm new to python and I've been spending the last week on GUI
that refresh its content based on data periodically coming from a
remote socket.
I succeded in doing it (thanks newsgroups and online manual!) using
the Tkinter.after method to implement a busy wait on the socket (which
I had previously set to non blocking)
I should be happy with it, but on windows (application must be multi-
platform) the busy wait leads to a 100% CPU usage. I'm trying to
implement it the other way round: a "socket process" that updates a
label (or a queue object) in the GUI. I can't figure out how to do
this. Anyone can post hints? With some details, maybe?
Thanks all
Max
.
- Follow-Ups:
- Re: Tkinter and asyncronous socket
- From: Steve Holden
- Re: Tkinter and asyncronous socket
- Prev by Date: Re: How to get a directory file descriptor?
- Next by Date: Python C/API simple debugging
- Previous by thread: Requesting direction for installation problem
- Next by thread: Re: Tkinter and asyncronous socket
- Index(es):
Relevant Pages
|