Skip to main content

An asynchronous wrapper for TK/TCL using TKInter and AsyncIO

Project description

# AsyncTK

[![Licence: GPL v3](https://img.shields.io/badge/Licence-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

## What is AsyncTK?

AsyncTK is an asynchronous wrapper for TK/TCL using TKInter and AsyncIO. It can:

  • Initialise and start the event loop

  • Run all major TK/TCL commands and widgets, asynchronously!

  • Be combined, using class inheritance, with other asynchronous processes and classes!

### Installation

AsyncTK can be installed using pip install asynctk, or for the more adventurous, pip install git+https://github.com/Starwort/asynctk.git

### Usage

AsyncTK’s window is used as TK’s is, it’s created, and components are placed onto it. Finally, the app’s .mainloop() method is called, and your program runs. Nothing new there, right? Wrong. By calling asyncio.ensure_future() on your coroutines, those coroutines will continue to run, and can interact with the TK window. This means no more threading solutions - processes can change the window!

### Future improvements

  • Make coroutines the default for callbacks

  • Ensure there is no widget lag

  • Submodules

  • Stability

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asynctk-2019.03.24.rev6.tar.gz (35.9 kB view details)

Uploaded Source

File details

Details for the file asynctk-2019.03.24.rev6.tar.gz.

File metadata

  • Download URL: asynctk-2019.03.24.rev6.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for asynctk-2019.03.24.rev6.tar.gz
Algorithm Hash digest
SHA256 60303d483f72fdf2e77f09aa89b24daeb0b1aeaee53f2f0e44217302640bc1ff
MD5 a1f8d68f32d371b22a837b65dd8954d0
BLAKE2b-256 5a203dd56b3b5fd023bbe02fffb5dd3f9d82e6f03309830af070739f240efa2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page