Aug-12-2022, 07:21 PM
(Aug-12-2022, 02:37 PM)Gribouillis Wrote: The objectc_queue
is not callable. Try this perhaps
def CheckQueuePoll(self, c_queue): try: str = c_queue.get_nowait() c_queue.task_done() self.currentUserProcess2.configure(text=str) except queue.Empty: pass finally: self.root.after(100, self.CheckQueuePoll, q)
I tried it but now it gives me this errors:
Error:TypeError: process1() takes 0 positional arguments but 1 was given
Error:TypeError: process2() takes 0 positional arguments but 1 was given
So I tried passing the "q" as an argument to process1() and process2() and now I have this error:Error:AttributeError: 'Queue' object has no attribute 'task_done'
There is maybe a problem with the import? I tried importing queue in different ways though.