Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async version of the TkinterMapView widget #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alex-schulster
Copy link

What?

This PR adds the implementation for an async version of the TkinterMapView widget (called AsyncTkinterMapView).

Why?

If willing to use this widget in an application that makes use of async tasks rather than threads, the original threaded version won't work. See issue #151.

How?

The implementation is basically a copy of the original class with every thread replaced by async actions. This is not pretty, but it works fine for basic usage. A basic example using this implementation is provided.

No thread involved. Everything is handled with async tasks.
Simple window inspired from original example. Simply replaced
TkinterMapView with its async version.
@alex-schulster alex-schulster mentioned this pull request Jan 22, 2025
@mke21
Copy link

mke21 commented Jan 23, 2025

Nice work, only remark: You forgot to update the requirements. You are using aiohttp but it's not installed with the requirements.txt nor with the setup.py.

Update both `requirements.txt` and `setup.py`
@alex-schulster
Copy link
Author

Oops, you're absolutely right.
This is now fixed. Thanks for the insight.

@mke21
Copy link

mke21 commented Jan 23, 2025

Nice, now hopefully this will be merged. But alas the project seems to be very dormant, seeing all the open pull requests here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants