kdavies4 / ModelicaRes

Set up, analyze, and plot Modelica simulations in Python
http://kdavies4.github.io/ModelicaRes/
Other
51 stars 20 forks source link

Use Qt instead of wx for variable browser #11

Open kdavies4 opened 10 years ago

kdavies4 commented 10 years ago

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

kdavies4 commented 10 years ago

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

ModelicaRes only uses wx for two things:

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 commented 10 years ago

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

kdavies4 commented 10 years ago

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

kdavies4 commented 10 years ago

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.

fran-jo commented 7 years ago

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 commented 5 years ago

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/