Skip to content

Adding main_loop to the exports#68

Merged
insolor merged 1 commit intoinsolor:mainfrom
joaomoa:main
Nov 24, 2023
Merged

Adding main_loop to the exports#68
insolor merged 1 commit intoinsolor:mainfrom
joaomoa:main

Conversation

@joaomoa
Copy link
Copy Markdown
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
@insolor
Copy link
Copy Markdown
Owner

insolor commented Nov 24, 2023

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

@joaomoa
Copy link
Copy Markdown
Contributor Author

joaomoa commented Nov 24, 2023

Thanks for the speedy response

@insolor
Copy link
Copy Markdown
Owner

insolor commented Nov 24, 2023

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

@joaomoa
Copy link
Copy Markdown
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