async-tkinter-loop 0.10.0__tar.gz → 0.10.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: async-tkinter-loop
3
- Version: 0.10.0
3
+ Version: 0.10.2
4
4
  Summary: Asynchronous mainloop implementation for tkinter
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -34,7 +34,7 @@ Description-Content-Type: text/markdown
34
34
  [![Python tests](https://github.com/insolor/async-tkinter-loop/actions/workflows/python-tests.yml/badge.svg)](https://github.com/insolor/async-tkinter-loop/actions/workflows/python-tests.yml)
35
35
  [![Documentation](https://github.com/insolor/async-tkinter-loop/actions/workflows/deploy-docs.yml/badge.svg)](https://insolor.github.io/async-tkinter-loop/)
36
36
  [![Coverage Status](https://coveralls.io/repos/github/insolor/async-tkinter-loop/badge.svg?branch=main)](https://coveralls.io/github/insolor/async-tkinter-loop?branch=main)
37
- [![Maintainability](https://qlty.sh/badges/01e7abf5-a53c-42ce-a0e1-c1b0bd24d095/maintainability.svg)](https://qlty.sh/gh/insolor/projects/async-tkinter-loop)
37
+ [![Maintainability](https://qlty.sh/badges/01e7abf5-a53c-42ce-a0e1-c1b0bd24d095/maintainability.svg)](https://qlty.sh/gh/insolor/projects/async-tkinter-loop)
38
38
  [![PyPI](https://img.shields.io/pypi/v/async-tkinter-loop)](https://pypi.org/project/async-tkinter-loop/)
39
39
  ![Supported Python versions](https://img.shields.io/pypi/pyversions/async-tkinter-loop)
40
40
  <!--![PyPI - Downloads](https://img.shields.io/pypi/dm/async-tkinter-loop)-->
@@ -3,7 +3,7 @@
3
3
  [![Python tests](https://github.com/insolor/async-tkinter-loop/actions/workflows/python-tests.yml/badge.svg)](https://github.com/insolor/async-tkinter-loop/actions/workflows/python-tests.yml)
4
4
  [![Documentation](https://github.com/insolor/async-tkinter-loop/actions/workflows/deploy-docs.yml/badge.svg)](https://insolor.github.io/async-tkinter-loop/)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/insolor/async-tkinter-loop/badge.svg?branch=main)](https://coveralls.io/github/insolor/async-tkinter-loop?branch=main)
6
- [![Maintainability](https://qlty.sh/badges/01e7abf5-a53c-42ce-a0e1-c1b0bd24d095/maintainability.svg)](https://qlty.sh/gh/insolor/projects/async-tkinter-loop)
6
+ [![Maintainability](https://qlty.sh/badges/01e7abf5-a53c-42ce-a0e1-c1b0bd24d095/maintainability.svg)](https://qlty.sh/gh/insolor/projects/async-tkinter-loop)
7
7
  [![PyPI](https://img.shields.io/pypi/v/async-tkinter-loop)](https://pypi.org/project/async-tkinter-loop/)
8
8
  ![Supported Python versions](https://img.shields.io/pypi/pyversions/async-tkinter-loop)
9
9
  <!--![PyPI - Downloads](https://img.shields.io/pypi/dm/async-tkinter-loop)-->
@@ -106,10 +106,9 @@ def async_handler(
106
106
  button = tk.Button("Press me", command=some_async_function)
107
107
  ```
108
108
  """
109
- event_loop = event_loop or get_event_loop()
110
-
111
109
  @wraps(async_function)
112
110
  def wrapper(*handler_args) -> None:
113
- event_loop.create_task(async_function(*handler_args, *args, **kwargs))
111
+ loop = event_loop or get_event_loop()
112
+ loop.create_task(async_function(*handler_args, *args, **kwargs))
114
113
 
115
114
  return wrapper
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "async-tkinter-loop"
3
- version = "0.10.0"
3
+ version = "0.10.2"
4
4
  description = "Asynchronous mainloop implementation for tkinter"
5
5
  authors = ["insolor <insolor@gmail.com>"]
6
6
  license = "MIT"