[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

That issue has my previous experiments.  Thank you Serhiy for finding it ;-).

--
resolution:  -> duplicate
superseder:  -> Integrate tkinter and asyncio (and async)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Skip Montanaro


Skip Montanaro  added the comment:

That's fine. My brief search didn't turn up

https://bugs.python.org/issue27546

I'm happy to close this.

--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is a duplicate of issue27546.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47190] Integrating tkinter and asyncio event loops

2022-04-03 Thread Skip Montanaro


Change by Skip Montanaro :


--
keywords: +patch
pull_requests: +30355
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/32293

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47190] Integrating tkinter and asyncio event loops

2022-04-01 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I did some somewhat similar experiments a few years ago.  I will try to find 
the code sometime.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47190] Integrating tkinter and asyncio event loops

2022-04-01 Thread Skip Montanaro


New submission from Skip Montanaro :

After looking around and asking, it appears there is no built-in integration of 
the tkinter and asyncio event loops. That would seem to be a good thing, at 
least as an example. I wrote a simple hello world which creates an AsyncTk 
class and uses asyncio-driven event handling. This is clearly incomplete, but 
might be a useful starting point, even if just as a seed for discussion or as 
an example for tkinter or asyncio documentation.

Discussion/thread references:

https://mail.python.org/pipermail/python-list/2022-March/905783.html
https://discuss.python.org/t/connecting-asyncio-and-tkinter-event-loops/14722/7

The code in its most basic form is attached. (I have another version which uses 
pynput to track keyboard and mouse events.)

--
components: Tkinter
files: tkasyncio.py
messages: 416500
nosy: skip.montanaro
priority: normal
severity: normal
status: open
title: Integrating tkinter and asyncio event loops
versions: Python 3.11
Added file: https://bugs.python.org/file50712/tkasyncio.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com