Safetkinter RuntimeError: Recursion Limit
So I've been trying to get a threadsafe adapter for tkinter (I'm using
Python 3.3) to help with some of my projects. I stumbled upon a recipe
called "safetkinter" (recipe 578153), which promises to route all gui
calls to the main thread. I tried it out, but I am having problems with a
RuntimeError that keeps sticking its head up and ruining my endeavors.
I've tried various ways of fixing it with no luck. So... Does anyone here
know the trick to getting this to work? (also, safetkinter makes use of
the threadbox recipe, and the affinity recipe by dependence. I also
believe that the affinity module is the culprit of this problem.)
The script I was using to test the module:
import safetkinter as tkinter
class Main(tkinter.Tk):
def __init__(self):
self._setup()
self.mainloop()
def _setup(self):
tkinter.Button(self, text='Push me!').pack()
if __name__ == '__main__':
Main()
No comments:
Post a Comment