Skip to content

Commit 9dc15bc

Browse files
authored
Accwidgets 4.0.0 compatibility
2 parents 9b1761a + fe24503 commit 9dc15bc

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# OMC3-GUI Changelog
22

3+
#### 2025-04-07 - v1.0.1
4+
5+
- Fixed:
6+
- Import error due to `accwidget 4.0.0` update.
7+
38
#### 2025-04-04 - v1.0.0 - Segment-by-Segment GUI
49

510
- Maintenance:

omc3_gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__title__ = "omc3-gui"
1111
__description__ = "QT Graphical User Interface wrapper of the ``omc3`` package"
1212
__url__ = "https://github.com/pylhc/omc3_gui"
13-
__version__ = "1.0.0"
13+
__version__ = "1.0.1"
1414
__author__ = "pylhc"
1515
__author_email__ = "pylhc@github.com"
1616

omc3_gui/plotting/classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pyqtgraph as pg
1212
from accwidgets.graph import StaticPlotWidget
1313
from accwidgets.graph.widgets.plotitem import ExViewBox
14-
from accwidgets.graph.widgets.plotwidget import GridOrientationOptions
14+
from accwidgets.graph.widgets.plotwidget import ExPlotWidgetProperties
1515
from qtpy.QtCore import Signal, Qt
1616

1717
if TYPE_CHECKING:
@@ -81,7 +81,7 @@ class PlotWidget(StaticPlotWidget):
8181
def __init__(self, *args, **kwargs) -> None:
8282
super().__init__(*args, **kwargs, viewBox=ZoomingViewBox()) # using viewbox here requires accwidgets >= 3.0.11
8383
self.setBackground("w")
84-
self._set_show_grid(GridOrientationOptions.Both)
84+
self._set_show_grid(ExPlotWidgetProperties.GridOrientationOptions.BOTH)
8585

8686

8787
class ZoomingViewBox(ExViewBox):

omc3_gui/plotting/element_lines.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ def plot_element_lines(plot: pg.PlotWidget, data_frame: tfs.TfsDataFrame, ranges
4949
pen = pg.mkPen(color="grey", width=1, style=Qt.PenStyle.DotLine)
5050
for element, x in s_elements.items():
5151
plotItem.addLine(x=x, z=-10, pen=pen, label=element, labelOpts={"angle": 90})
52-

0 commit comments

Comments
 (0)