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 Qt instead of wx for variable browser #11

Open
kdavies4 opened this issue Apr 1, 2014 · 6 comments
Open

Use Qt instead of wx for variable browser #11

kdavies4 opened this issue Apr 1, 2014 · 6 comments
Labels

Comments

@kdavies4
Copy link
Owner

kdavies4 commented Apr 1, 2014

QT is used more widely, and it still seems to be difficult to get wx running with Python 3.

@kdavies4
Copy link
Owner Author

kdavies4 commented May 2, 2014

From email to Sebastian Stratbücker 4/25/14:

ModelicaRes only uses wx for two things:

  • a directory selector (wx.DirSelector) in the save function ofbase.py
  • a fairly simple variable browser (SimRes.browser()) which relies on code in gui.py.

The variable browser provides an expandable tree of Modelica variables via SimRes.nametree(). When a variable is highlighted, a plot is shown using (SimRes.plot()) and the variable name, description (SimRes.get_description()), unit (SimRes.get_unit()), and displayUnit (SimRes.get_displayUnit()) are listed. Please feel free to change or embellish that functionality. Nothing is set in stone.

@kdavies4
Copy link
Owner Author

kdavies4 commented May 6, 2014

It may also be good to use QT in the bin/loadres script instead of easygui.

@kdavies4
Copy link
Owner Author

kdavies4 commented May 9, 2014

Now using PyQt4 instead of easygui but still need to eliminate wx.

@kdavies4 kdavies4 added bug and removed bug labels May 11, 2014
@kdavies4
Copy link
Owner Author

wx is no longer needed for installation. It's only loaded when the browse() method is called. I switched from PyQt4 to PySide because it worked more easily and it has better licensing.

@kdavies4 kdavies4 changed the title Use QT instead of wx Use Qt instead of wx for variable browser Jun 6, 2014
@fran-jo
Copy link

fran-jo commented Aug 2, 2017

Is this issue still open? I could only find the use of the wx within the browse() method, so... I created a little routine to use PyQt4 (populate the SimRes values into a QTreeWidget with QTreeWidgetItems)

@FWuellhorst
Copy link

wxPython is now available for python 3.5 as well. With some small changes, the browse() function in the simres-module is available again.

Source:
https://wxpython.org/

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

3 participants