From 37de9e581ccdcb1dcf2927bc17154904eaf4d319 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 2 Aug 2021 18:52:22 -0400 Subject: [PATCH] Make god widget focus to chart / "view mode" --- piker/ui/_chart.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index cb59a634..5bff0c58 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -256,6 +256,15 @@ class GodWidget(QWidget): return order_mode_started + def focus(self) -> None: + '''Focus the top level widget which in turn focusses the chart + ala "view mode". + + ''' + # go back to view-mode focus (aka chart focus) + self.clearFocus() + self.linkedsplits.chart.setFocus() + class LinkedSplits(QWidget): '''