Metadata-Version: 2.4
Name: asyncui
Version: 1.0.0
Summary: Library for asynchronous GUI programming
Project-URL: Homepage, https://github.com/eumis/asyncui
Keywords: wxpython,gui,asyncio,tk,tkinter
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Framework :: AsyncIO
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typing-extensions; python_version < "3.10"
Dynamic: license-file

# AsyncUI

[![CI](https://github.com/eumis/asyncui/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/eumis/asyncui/actions/workflows/ci.yml)

Library for asynchronous GUI programming.
Runs async event loop in a separate thread.

## Installation

```
pip install asyncui
```

## Usage

For complete examples see [demo](demo) folder.

### wxpython

```python
import asyncio
import asyncui
import wx

app = wx.App()
frame = wx.Frame(None, title="Async wxPython")
frame.Show()

with asyncui.run_loop():
    app.MainLoop()
```

### Tkinter Example

```python
import asyncio
import asyncui
import tkinter as tk

root = tk.Tk()
root.title("Async Tkinter")

with asyncui.run_loop():
    root.mainloop()
```
