"Davy" <[EMAIL PROTECTED]> wrote:
>def gen_board_thread():
>print 'enter here'
>gen_flip = 1
>while(True):
You don't need the brackets: while True: is good enough
>time.sleep(0.3)
>if (data_queue.full() == False):
write: if not data_queue.full(): , and lose the brac
On Dec 4, 9:08 am, Davy <[EMAIL PROTECTED]> wrote:
> On Dec 4, 11:13 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote:> "Davy"
> <[EMAIL PROTECTED]> wrote:
> > > while(data_queue.full() == False):
>
> > This will fill the queue and stop.
> > Use while true and if queue not full...
>
> Hi He
On Dec 4, 11:13 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote:
> "Davy" <[EMAIL PROTECTED]> wrote:
> > while(data_queue.full() == False):
>
> This will fill the queue and stop.
> Use while true and if queue not full...
Hi Hendrik,
It works, thank you:)
Davy
>
> - Hendrik
--
http://mail
"Davy" <[EMAIL PROTECTED]> wrote:
> while(data_queue.full() == False):
This will fill the queue and stop.
Use while true and if queue not full...
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I am using thread and tkinter to write some simple programs and
solidify my understanding of Python thread/GUI programing. The scheme
is thread + queue + GUI. One child thread (gen_board_thread) generate
board and insert data into queue infinitely. Meanwhile, the main
thread canvas widget