mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix(plot_base): inner and outer axis setting in popup mode
This commit is contained in:
@ -37,7 +37,6 @@ class AxisSettings(SettingWidget):
|
|||||||
self.layout = QVBoxLayout(self)
|
self.layout = QVBoxLayout(self)
|
||||||
self.layout.setContentsMargins(0, 0, 0, 0)
|
self.layout.setContentsMargins(0, 0, 0, 0)
|
||||||
self.layout.addWidget(self.scroll_area)
|
self.layout.addWidget(self.scroll_area)
|
||||||
# self.layout.addWidget(self.ui)
|
|
||||||
self.ui = form
|
self.ui = form
|
||||||
|
|
||||||
if self.target_widget is not None and self.popup is False:
|
if self.target_widget is not None and self.popup is False:
|
||||||
@ -50,8 +49,6 @@ class AxisSettings(SettingWidget):
|
|||||||
def connect_all_signals(self):
|
def connect_all_signals(self):
|
||||||
for widget in [
|
for widget in [
|
||||||
self.ui.title,
|
self.ui.title,
|
||||||
self.ui.inner_axes,
|
|
||||||
self.ui.outer_axes,
|
|
||||||
self.ui.x_label,
|
self.ui.x_label,
|
||||||
self.ui.x_min,
|
self.ui.x_min,
|
||||||
self.ui.x_max,
|
self.ui.x_max,
|
||||||
@ -62,6 +59,8 @@ class AxisSettings(SettingWidget):
|
|||||||
self.ui.y_max,
|
self.ui.y_max,
|
||||||
self.ui.y_log,
|
self.ui.y_log,
|
||||||
self.ui.y_grid,
|
self.ui.y_grid,
|
||||||
|
self.ui.inner_axes,
|
||||||
|
self.ui.outer_axes,
|
||||||
]:
|
]:
|
||||||
WidgetIO.connect_widget_change_signal(widget, self.set_property)
|
WidgetIO.connect_widget_change_signal(widget, self.set_property)
|
||||||
|
|
||||||
@ -132,8 +131,6 @@ class AxisSettings(SettingWidget):
|
|||||||
"""
|
"""
|
||||||
for widget in [
|
for widget in [
|
||||||
self.ui.title,
|
self.ui.title,
|
||||||
self.ui.inner_axes,
|
|
||||||
self.ui.outer_axes,
|
|
||||||
self.ui.x_label,
|
self.ui.x_label,
|
||||||
self.ui.x_min,
|
self.ui.x_min,
|
||||||
self.ui.x_max,
|
self.ui.x_max,
|
||||||
@ -144,6 +141,8 @@ class AxisSettings(SettingWidget):
|
|||||||
self.ui.y_max,
|
self.ui.y_max,
|
||||||
self.ui.y_log,
|
self.ui.y_log,
|
||||||
self.ui.y_grid,
|
self.ui.y_grid,
|
||||||
|
self.ui.outer_axes,
|
||||||
|
self.ui.inner_axes,
|
||||||
]:
|
]:
|
||||||
property_name = widget.objectName()
|
property_name = widget.objectName()
|
||||||
value = WidgetIO.get_value(widget)
|
value = WidgetIO.get_value(widget)
|
||||||
|
Reference in New Issue
Block a user