From 942b606fcac9982edcdc240f2e2644a035a0c363 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 11 Aug 2017 10:14:47 +0200 Subject: [PATCH] [change] workaround reinit tuneAutopicker widget --- QtPyLoT.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 43ec8670..a8ccdfb5 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1798,18 +1798,18 @@ class MainWindow(QMainWindow): fig = Figure() self.fig_dict[key] = fig - if not self.tap: - # init TuneAutopicker object - self.tap = TuneAutopicker(self) - # first call of update to init tabs with empty canvas - self.update_autopicker() - # connect update signal of TuneAutopicker with update function - # creating and filling figure canvas - self.tap.update.connect(self.update_autopicker) - self.tap.figure_tabs.setCurrentIndex(0) - else: - self.update_autopicker() - self.tap.fill_eventbox() + #if not self.tap: + # init TuneAutopicker object + self.tap = TuneAutopicker(self) + # first call of update to init tabs with empty canvas + self.update_autopicker() + # connect update signal of TuneAutopicker with update function + # creating and filling figure canvas + self.tap.update.connect(self.update_autopicker) + self.tap.figure_tabs.setCurrentIndex(0) + #else: + # self.update_autopicker() + # self.tap.fill_eventbox() self.tap.show() def update_autopicker(self):