Skip to content

Fix #909: expose more modules from qwt5 in qtgui.plot

Carlos Pascual requested to merge github/fork/cpascual/fix-909 into develop

The taurus.qt.qtgui.plot module is a backwards-compatibility implementation that exposes all public API from taurus.qt.qtgui.qwt5.

Unfortunately, in some cases, the non-public API is also needed for backwards compat. One example is when loading old settings files (created with v<4.5) that are based on pickles that end up calling import taurus.qt.qtgui.plot.curvesAppearanceChooserDlg.

In order to provide better backwards compatibility, patch sys.modules by injecting the submodules of taurus.qt.qtgui.qwt5 as submodules of taurus.qt.qtgui.plot.

Fixes #909 (closed)

Merge request reports

Loading