Polling a net address

Aahz aahz at pythoncraft.com
Sun Aug 23 14:12:00 EDT 2009


In article <99ddf4e1-d327-4fb1-aee4-aa881de3b3af at d23g2000vbm.googlegroups.com>,
Iain  <iain at kandaba.com> wrote:
>
>I'm writing a system tray application for windows, and the app needs
>to poll a remote site at a pre-defined interval, and then process any
>data returned.
>
>The GUI needs to remain responsive as this goes on, so the polling
>needs to be done in the background. I've been looking into Twisted as
>a way of achieving this, but can't seem to get anything to loop
>successfully.
>
>Does anyone have any pointers that they might be able to give me?

You might prefer trying out threads instead; there's a simple Tkinter
example in
http://www.pythoncraft.com/OSCON2001/index.html
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"I support family values -- Addams family values" --www.nancybuttons.com



More information about the Python-list mailing list