Re: Tkinter listener thread?

2006-01-27 Thread gregarican
Eric Brunel wrote: > There's in fact no need to check regularly if there's something in the > Queue: the secondary thread can post a tk custom event to trigger the > treatment automatically from within the main GUI loop. See here: > http://minilien.fr/a0k273 Appreciate the suggestion. This furthe

Re: Tkinter listener thread?

2006-01-27 Thread Eric Brunel
On Thu, 26 Jan 2006 17:32:32 +, Steve Holden <[EMAIL PROTECTED]> wrote: > gregarican wrote: >> I have a Python UDP listener socket that waits for incoming data. The >> socket runs as an endless loop. I would like to pop the incoming data >> into an existing Tkinter app that I have created. W

Re: Tkinter listener thread?

2006-01-26 Thread gregarican
Steve Holden wrote: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 Thanks. I tried a variation of this Queue posting/Flag checking method and it worked to a tee. The problem was that my UDP socket query was blocking things so that thread was hanging everything up. So I used a soc

Re: Tkinter listener thread?

2006-01-26 Thread gregarican
Grant Edwards wrote: > Unless tk.createfilehandler isn't supported no Wni32 > platforms?? Unfortunately that's the case. As of Python 2.3.4 under Windows XP the createfilehandler method isn't available. It's only for UNIX as Mac platforms AFAIK. Shame, as it would be relatively easy to implement

Re: Tkinter listener thread?

2006-01-26 Thread Grant Edwards
On 2006-01-26, Steve Holden <[EMAIL PROTECTED]> wrote: > gregarican wrote: >> I have a Python UDP listener socket that waits for incoming data. The >> socket runs as an endless loop. I would like to pop the incoming data >> into an existing Tkinter app that I have created. What's the >> easiest/mos

Re: Tkinter listener thread?

2006-01-26 Thread Jean-Paul Calderone
On 26 Jan 2006 08:46:11 -0800, gregarican <[EMAIL PROTECTED]> wrote: >I have a Python UDP listener socket that waits for incoming data. The >socket runs as an endless loop. I would like to pop the incoming data >into an existing Tkinter app that I have created. What's the >easiest/most efficient wa

Re: Tkinter listener thread?

2006-01-26 Thread Steve Holden
gregarican wrote: > I have a Python UDP listener socket that waits for incoming data. The > socket runs as an endless loop. I would like to pop the incoming data > into an existing Tkinter app that I have created. What's the > easiest/most efficient way of handling this? Would I create a separate >

Tkinter listener thread?

2006-01-26 Thread gregarican
I have a Python UDP listener socket that waits for incoming data. The socket runs as an endless loop. I would like to pop the incoming data into an existing Tkinter app that I have created. What's the easiest/most efficient way of handling this? Would I create a separate thread that has the listene