From b348117d5a590ef154c4f31a556f373d7fdae744 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 18 Jul 2018 15:04:07 +0200 Subject: [PATCH] [bugfix] tuneAutopicker not using new pb_widget --- PyLoT.py | 1 - pylot/core/util/widgets.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index 177fa7d5..75fc9df6 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -610,7 +610,6 @@ class MainWindow(QMainWindow): # add progressbar self.mainProgressBarWidget = ProgressBarWidget(self) - self.mainProgressBarWidget.hide() self._main_layout.addWidget(self.mainProgressBarWidget) # add scroll area used in case number of traces gets too high diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 791ba196..4b80ba03 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -129,6 +129,7 @@ class ProgressBarWidget(QtGui.QWidget): self.hlayout.addWidget(self.pb) self.hlayout.addWidget(self.label) self.setLayout(self.hlayout) + self.hide() class ComparisonWidget(QWidget): @@ -3182,7 +3183,7 @@ class TuneAutopicker(QWidget): self.fill_figure_tabs() def init_pbwidget(self): - self.pb_widget = QtGui.QWidget() + self.pb_widget = ProgressBarWidget() def init_tab_names(self): self.ptb_names = ['aicFig', 'slength', 'checkZ4s', 'refPpick', 'el_Ppick', 'fm_picker']