mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
3c9bc6ce73
commit
79660bfd6e
|
|
@ -439,7 +439,7 @@ class CustomPlot(PamhyrPlot):
|
|||
|
||||
@timer
|
||||
def update(self):
|
||||
#if not self._init:
|
||||
if not self._init:
|
||||
self.draw()
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -538,6 +538,9 @@ class ResultsWindow(PamhyrWindow):
|
|||
)
|
||||
plot.draw()
|
||||
|
||||
# Add plot to additional plot
|
||||
self._additional_plot[name] = plot
|
||||
|
||||
grid.addWidget(toolbar, 0, 0)
|
||||
grid.addWidget(canvas, 1, 0)
|
||||
widget.setLayout(grid)
|
||||
|
|
@ -669,4 +672,5 @@ class ResultsWindow(PamhyrWindow):
|
|||
|
||||
def delete_tab(self, index):
|
||||
tab_widget = self.find(QTabWidget, f"tabWidget")
|
||||
self._additional_plot.pop(tab_widget.tabText(index))
|
||||
tab_widget.removeTab(index)
|
||||
|
|
|
|||
Loading…
Reference in New Issue