astrodatagui: show - if no rotational velocity or distance are found
This commit is contained in:
@@ -132,8 +132,14 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
||||
|
||||
def updateStarInfo(self, starInfo):
|
||||
self.lbSpType.setText(starInfo[0])
|
||||
self.lbRotVel.setText(f"{starInfo[1]} {starInfo[2]}")
|
||||
self.lbDistance.setText(f"{starInfo[3]} {starInfo[4]}")
|
||||
if(starInfo[1] > 0):
|
||||
self.lbRotVel.setText(f"{starInfo[1]} {starInfo[2]}")
|
||||
else:
|
||||
self.lbRotVel.setText("-")
|
||||
if(starInfo[3] > 0):
|
||||
self.lbDistance.setText(f"{starInfo[3]} {starInfo[4]}")
|
||||
else:
|
||||
self.lbDistance.setText("-")
|
||||
|
||||
def starSelected(self, item):
|
||||
seqs = self.starDB.getStarSequences(item.text())
|
||||
|
||||
Reference in New Issue
Block a user