Message271121
I would like the tutorial to include something like the following.
Adding Tkinter GUI to Asyncio Program
-------------------------------------
Assuming that the tkinter Tk instance is called 'root' and the asyncio loop is called 'loop', add the following callback loop.
def tk_update():
root.update()
loop.call_soon(tk_update)
Before each loop.run_forever() or loop.run_until_complete(...) call, add
tk_update()
Do not call root.mainloop() or root.quit(). Loop.stop() or completion of run_until_complete will stop the tk_update loop.
---
This is the result of my experiments in #27546. One of my tests was running IDLE with an asyncio loop augmented with the above replacing root.mainloop. I don't yet know how to work with git and github. |
|
Date |
User |
Action |
Args |
2016-07-24 02:09:19 | terry.reedy | set | recipients:
+ terry.reedy, vstinner, asvetlov, docs@python, Ludovic.Gasc, yselivanov, matrixise |
2016-07-24 02:09:19 | terry.reedy | set | messageid: <1469326159.12.0.284934891988.issue27579@psf.upfronthosting.co.za> |
2016-07-24 02:09:19 | terry.reedy | link | issue27579 messages |
2016-07-24 02:09:18 | terry.reedy | create | |
|