[change] workaround reinit tuneAutopicker widget
This commit is contained in:
parent
874fdd730a
commit
942b606fca
24
QtPyLoT.py
24
QtPyLoT.py
@ -1798,18 +1798,18 @@ class MainWindow(QMainWindow):
|
|||||||
fig = Figure()
|
fig = Figure()
|
||||||
self.fig_dict[key] = fig
|
self.fig_dict[key] = fig
|
||||||
|
|
||||||
if not self.tap:
|
#if not self.tap:
|
||||||
# init TuneAutopicker object
|
# init TuneAutopicker object
|
||||||
self.tap = TuneAutopicker(self)
|
self.tap = TuneAutopicker(self)
|
||||||
# first call of update to init tabs with empty canvas
|
# first call of update to init tabs with empty canvas
|
||||||
self.update_autopicker()
|
self.update_autopicker()
|
||||||
# connect update signal of TuneAutopicker with update function
|
# connect update signal of TuneAutopicker with update function
|
||||||
# creating and filling figure canvas
|
# creating and filling figure canvas
|
||||||
self.tap.update.connect(self.update_autopicker)
|
self.tap.update.connect(self.update_autopicker)
|
||||||
self.tap.figure_tabs.setCurrentIndex(0)
|
self.tap.figure_tabs.setCurrentIndex(0)
|
||||||
else:
|
#else:
|
||||||
self.update_autopicker()
|
# self.update_autopicker()
|
||||||
self.tap.fill_eventbox()
|
# self.tap.fill_eventbox()
|
||||||
self.tap.show()
|
self.tap.show()
|
||||||
|
|
||||||
def update_autopicker(self):
|
def update_autopicker(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user