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 Hendrik, > > It works, thank you:) Add changed code: //------code changed --- def gen_board_thread(): print 'enter here' gen_flip = 1 while(True): time.sleep(0.3) if (data_queue.full() == False): if (gen_flip == 1): gen_flip = 0 data = board_1 else: gen_flip = 1 data = board_2 data_queue.put(data) print 'put', data_queue.qsize() //-------------------- > > Davy > > > > > > > - Hendrik- Hide quoted text - > > - Show quoted text -
-- http://mail.python.org/mailman/listinfo/python-list