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

Use update_idletasks() to avoid hangs on epar GUI window. #145

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

monodera
Copy link
Contributor

Apparently using update() for tkinter objects hang the process when epar is executed in pyraf. Using update_idletasks() appears to fix it.

This is a possible fix for #144

I added # isort: skip to avoid auto-formatting with my editor (I couldn't disable it, sorry). Please ignore these changes.

Apparently using `update()` for tkinter objects hang the process when `epar` is executed in pyraf. Using `update_idletasks()` appears to fix it.

This is a possible fix for iraf-community#144
pyraf/tools/editpar.py Outdated Show resolved Hide resolved
pyraf/tools/editpar.py Outdated Show resolved Hide resolved
I removed `# isort skip` comments pointed out in the review.
@monodera
Copy link
Contributor Author

I edited it directly on GitHub. Hope it works (I'm not get used to the github workflow).

@olebole
Copy link
Member

olebole commented Oct 19, 2022

Great, thanks! Please give me a few days to check (I am quite busy at the moment...)

@olebole
Copy link
Member

olebole commented Oct 20, 2022

I can confirm that this works on Linux (Debian testing) as well. So, I will merge.

Thank you very much for this finding and the PR!

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

Successfully merging this pull request may close these issues.

None yet

2 participants