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

Adding main_loop to the exports #68

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Adding main_loop to the exports #68

merged 1 commit into from
Nov 24, 2023

Conversation

joaomoa
Copy link
Contributor

@joaomoa joaomoa commented Nov 24, 2023

Can we add this function to the exports please? It's useful for me when I am already in an async context and don't want to start a new event loop, but only create a task to run tkinter

@insolor insolor merged commit 71da107 into insolor:main Nov 24, 2023
7 checks passed
@insolor
Copy link
Owner

insolor commented Nov 24, 2023

Ok, why not. I'll publish it to pypi in a few hours.

@joaomoa
Copy link
Contributor Author

joaomoa commented Nov 24, 2023

Thanks for the speedy response

@insolor
Copy link
Owner

insolor commented Nov 24, 2023

Can you describe your situation more? Do you run main_loop from an async function?

@joaomoa
Copy link
Contributor Author

joaomoa commented Nov 24, 2023

Exactly.
If I use async_mainloop, I get an error saying that the event loop is already running.

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