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

MAINT:add comment to explain the example as wx only #2020

Merged
merged 1 commit into from
May 10, 2023

Conversation

homosapien-lcy
Copy link
Contributor

@homosapien-lcy homosapien-lcy commented May 9, 2023

The traitsui/examples/tutorials/traitsui_4.0/editors/animated_gif.py will generate a RuntimeError: Importing from wx backend after selecting qt backend!. The cause of this error comes from assert_toolkit_import(["wx"]) in traitsui/traitsui/toolkit.py. Althought removing this line can suppress this problem, this demo is supposed to be wx only, thus I push this PR to add the message. closes #2016

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst) (Not really, just a reminder of backend usage)

@corranwebster corranwebster merged commit 8685e6a into main May 10, 2023
19 checks passed
@corranwebster corranwebster deleted the add_animated_gif_wx_comment branch May 10, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants