Skip to content

Tag: multithreading

Why is this tkinter program freezing?

I’m having an issue with my GUI freezing, and I don’t know why. The run method is not releasing the lock. Demo program Problem Spam-clicking the progress bar freezes the program. Attempts at debugging I used mttkinter by adding import mttkinter to the import statements and the problem persists. Th…

Multithreaded pyodbc connection

I am trying to use a pyodbc connection in multiple threads. I am receieving the following error: Connection is busy with results for another command (0) (SQLExecDirectW)’). I also tried setting MultipleActiveResultSets=yes; and got the same results. I really don’t want to have to create a connecti…

How to trigger a function once a condition is met

What is an efficient way that I can trigger some function once the length of a list changes by a certain amount? I have a nested list to which I add data 100 times per second, and I want to trigger a function once the length of the list increased by some value. I tried doing this with an if