On Fri, May 8, 2015 at 2:36 PM, Luciano Ramalho <[email protected]> wrote:
> Skip, this repo [1] contains a toy example originally from Dino > Viehland's (@DinoV) talk "Using futures for async GUI programming in > Python 3.3" presented at PyCon US 2013. When I found the example was > broken because of changes in the API of Tulip. It now runs fine with > the asyncio included in Python 3.3. > > [1] https://github.com/fluentpython/asyncio-tkinter > Luciano, Thanks for the reference. I had found that, but couldn't clone it. It took me awhile before I realized it was a Mercurial repo, not a Git repo. I can run the tkapp2.py program, but only the "count sequentially" button works for me. Pushing either the callbacks or futures buttons, I get an "out of stack space" traceback: Traceback (most recent call last): File "/home/skipm/.local/lib/python3.5/concurrent/futures/_base.py", line 297, in _invoke_callbacks callback(self) File "tkapp2.py", line 130, in words_loaded self.after(0, words_loaded_update_ui) File "/home/skipm/.local/lib/python3.5/tkinter/__init__.py", line 607, in after return self.tk.call('after', ms, name) _tkinter.TclError: out of stack space (infinite loop?) I'm using Python 3.5 (whatever the cpython tip is as of a couple hours ago) and Tcl/Tk 8.5 on an openSuSE 12.2 system. I haven't looked into it, though I know basically squat about Tcl/Tk and even less about asyncio, so the odds of me figuring out the problem are likely slim. I don't see this problem on my Mac (OSX Yosemite, Python 3.5 a couple days older, Tcl/Tk 8.5). Skip
