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

GUI doesn't look so good with the wxpython backend in MayaVi #60

Open
moorepants opened this issue Apr 15, 2013 · 12 comments
Open

GUI doesn't look so good with the wxpython backend in MayaVi #60

moorepants opened this issue Apr 15, 2013 · 12 comments
Labels

Comments

@moorepants
Copy link
Collaborator

The background is dark and the font colors for the text are dark. Maybe there are some default settings that would make it look better.

@moorepants
Copy link
Collaborator Author

This is fundamentally a mayavi bug:

https://mail.enthought.com/pipermail/enthought-dev/2013-December/032710.html

@moorepants
Copy link
Collaborator Author

If you export this environment variable before loading yeadon you can force the GUI backend to be what you like:

export ETS_TOOLKIT='qt4'

@chrisdembia
Copy link
Owner

Can yeadon override the backend setting?

@moorepants
Copy link
Collaborator Author

If you export that environment variable then it can use an alternative backend. The default is wx (at least in Ubuntu).

@moorepants
Copy link
Collaborator Author

You could also set the environment variable in the software if the qt4 lib is available. But you need to check for pyqt first I guess.

@moorepants
Copy link
Collaborator Author

@moorepants
Copy link
Collaborator Author

Something like this as the top of gui.py might be good:

try:
    import pyface.qt
except ImportError:
    pass
else:
    import os
    os.environ['ETS_TOOLKIT'] = 'qt4'

@moorepants
Copy link
Collaborator Author

But this is not really our bug. It is a bug for MayaVi, Traits, Envisage, Ubuntu, etc.

@moorepants
Copy link
Collaborator Author

WX backend on Ubuntu 13.10 (screen resolution 1366 x 768):

workspace 1_027

QT4 Backend on Ubuntu 13.10 (screen resolution 1366 x 768):

workspace 1_028

Notice that the wx one looks bad and the qt does not have a maximize button, nor does it fit the screen vertically.

@moorepants
Copy link
Collaborator Author

These are new screenshots using Anaconda 2.0.1 on Ubuntu 14.04.
yeadon human inertia model_039
yeadon human inertia model_040

Things are better for the QT version.

@chrisdembia
Copy link
Owner

What should we do about this?

@moorepants
Copy link
Collaborator Author

  1. Report bugs upstream
  2. Add some code that sets the env var if qt is available.
  3. Add a command line flag or something to the GUI() call that allows you to specify the backend for Mayavi.

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

No branches or pull requests

2 participants