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

Combobox to choose Matplotlib backend #2348

Closed
Nodd opened this issue Apr 22, 2015 · 10 comments
Closed

Combobox to choose Matplotlib backend #2348

Nodd opened this issue Apr 22, 2015 · 10 comments

Comments

@Nodd
Copy link
Contributor

Nodd commented Apr 22, 2015

Currently the matplotlib backend is set via a QLineEdit. Since the possible values are a few and well defined, a combobox is more appropriate.

Bonus points if only the available backends are shown (but it depends on the active interpreter ?).

@Nodd
Copy link
Contributor Author

Nodd commented Apr 22, 2015

Same for ETS Toolkit, I guess.

@goanpeca
Copy link
Member

Which are the valid options? and how to check from the valid options which ones are enabled?

@ccordoba12
Copy link
Member

@goanpeca, we already have this for the IPython console. Check out its Graphics/Backend tab on Preferences to see what @Nodd wants. Right now we are only testing for available backends on the same interpreter that Spyder is running on, but that could be improved.

About ETS: I think there are only two possible options: qt and wx, so I don't think we need a combobox for that ;-)

@Nodd
Copy link
Contributor Author

Nodd commented Apr 22, 2015

@ccordoba12 Exactly! I didn't notice that it was already used by IPython.

About ETS, having a QLineEdit for 2 options is more silly than having a combobox. 👅 Other options are a checkbox (which would be confusing) or 2 radio buttons, which would work well too. In any case it's not a big deal, only a minor improvement.

@goanpeca
Copy link
Member

Even though I this is not terribly urgent, I do agree with @Nodd that even if only 2 options, we should change them to comboboxes.

@ccordoba12
Copy link
Member

wx doesn't work on Python 3, so I don't think we need a combobox for that entry

@Nodd
Copy link
Contributor Author

Nodd commented Apr 23, 2015

In that case this options should be hidden under python3, and use a combobox under python2. 😄

@ccordoba12
Copy link
Member

As @goanpeca established: help-wanted. I really think the QLineEdit is just fine. Besides, I don't know if ETS is working on Python 3.

@Nodd
Copy link
Contributor Author

Nodd commented Apr 23, 2015

👍

@ccordoba12
Copy link
Member

I'm going to solve this one as part of solving #2471 (by limiting the number of backends we support).

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

No branches or pull requests

3 participants