Author terry.reedy
Recipients Ludovic.Gasc, asvetlov, docs@python, matrixise, terry.reedy, vstinner, yselivanov
Date 2016-07-24.02:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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():

Before each loop.run_forever() or loop.run_until_complete(...) call, add


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:19terry.reedysetrecipients: + terry.reedy, vstinner, asvetlov, docs@python, Ludovic.Gasc, yselivanov, matrixise
2016-07-24 02:09:19terry.reedysetmessageid: <>
2016-07-24 02:09:19terry.reedylinkissue27579 messages
2016-07-24 02:09:18terry.reedycreate