0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

WIP FIX PLOTBASE mouse bundle default viewbox fetch fixed

This commit is contained in:
2025-04-06 12:31:04 +02:00
parent 5d4dc62cc7
commit 987e38a341
2 changed files with 3 additions and 3 deletions

View File

@ -171,6 +171,9 @@ class PlotBase(BECWidget, QWidget):
# hide some options by default
self.toolbar.toggle_action_visibility("fps_monitor", False)
# Get default viewbox state
self.mouse_bundle.get_viewbox_mode()
def add_side_menus(self):
"""Adds multiple menus to the side panel."""
# Setting Axis Widget

View File

@ -56,9 +56,6 @@ class MouseInteractionToolbarBundle(ToolbarBundle):
rect.action.toggled.connect(self.enable_mouse_rectangle_mode)
auto.action.triggered.connect(self.autorange_plot)
# Give some time to check the state
QTimer.singleShot(10, self.get_viewbox_mode)
def get_viewbox_mode(self):
"""
Returns the current interaction mode of a PyQtGraph ViewBox and sets the corresponding action.