We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SignalBaselineDialog
1 parent 552c5b6 commit fd5756cCopy full SHA for fd5756c
1 file changed
cdl/widgets/signalbaseline.py
@@ -57,6 +57,12 @@ def __setup_dialog(self) -> None:
57
plot.SIG_RANGE_CHANGED.connect(self.xrange_changed)
58
plot.SIG_MARKER_CHANGED.connect(self.cursor_changed)
59
self.cursor = make.hcursor(0.0, _("Base line") + " = %g")
60
+
61
+ # The following line is needed to avoid the cursor being movable manually
62
+ # by the user, which would not make sense in this dialog.
63
+ # TODO: Calling `set_resizable` for this is not intuitive: report upstream?
64
+ self.cursor.set_resizable(False)
65
66
self.xrange = make.range(obj.x[0], obj.x[int(0.2 * len(obj.x))])
67
for item in (self.curve, self.cursor, self.xrange):
68
plot.add_item(item)
0 commit comments