astrodatagui: disable count flares button when clicked and re-enable when done

This commit is contained in:
2024-06-07 12:34:38 +02:00
parent a59883d7ca
commit 1bdb552152
+2
View File
@@ -354,11 +354,13 @@ class AstrodataGUI(QtWidgets.QMainWindow):
def btCountAllFlaresClickedDone(self, allFlaresDictList): def btCountAllFlaresClickedDone(self, allFlaresDictList):
self.calcAllFlaresThread = None self.calcAllFlaresThread = None
self.btCountAllFlaresClicked.setEnabled(True)
self.AllFlaresWindow = FlareSummaryPlotGUI(allFlaresDictList) self.AllFlaresWindow = FlareSummaryPlotGUI(allFlaresDictList)
self.AllFlaresWindow.show() self.AllFlaresWindow.show()
def btCountAllFlaresClicked(self): def btCountAllFlaresClicked(self):
if(self.calcAllFlaresThread is None): if(self.calcAllFlaresThread is None):
self.btCountAllFlaresClicked.setEnabled(False)
allStarsDictList = pd.DataFrame(columns=["StarName", allStarsDictList = pd.DataFrame(columns=["StarName",
"SpType", "SpType",
"RotVel", "RotVel",