From 20ae05d33127954a6493dbab06a8d40a28462b7e Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Mon, 13 May 2024 11:46:41 +0200 Subject: [PATCH] astrodatagui: switch alt ids to proper list and fix resizing of other elements due to it --- main/astrodatagui/AstrodataGUI.py | 7 +- main/astrodatagui/astrodatagui.ui | 146 ++++++++++++++++++++---------- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index ee007d4..16a335d 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -152,12 +152,9 @@ class AstrodataGUI(QtWidgets.QMainWindow): self.listSequences.addItem(f"{sT[0]} - {sT[1]}") def updateStarAltNames(self, altNames): - print(altNames) - altNamesString = "" + self.listAltIDs.clear() for an in altNames[:-1]: - altNamesString += f"{an[0]}, " - altNamesString += altNames[-1][0] - self.lbAltIDs.setText(altNamesString) + self.listAltIDs.addItem(f"{an[0]}") def updateStarInfo(self, starInfo): self.lbSpType.setText(starInfo[0]) diff --git a/main/astrodatagui/astrodatagui.ui b/main/astrodatagui/astrodatagui.ui index 4e89dd1..eaad017 100644 --- a/main/astrodatagui/astrodatagui.ui +++ b/main/astrodatagui/astrodatagui.ui @@ -162,7 +162,7 @@ 16777215 - 310 + 2550 @@ -174,7 +174,7 @@ - + 0 0 @@ -188,7 +188,7 @@ 200 - 500 + 250 @@ -240,6 +240,12 @@ 0 + + + 16777215 + 250 + + Plot options @@ -926,17 +932,76 @@ - + 0 0 + + + 16777215 + 250 + + Star infos + + + + + 0 + 0 + + + + - + + + + + + + + 0 + 0 + + + + - + + + + + + + Alt. IDs: + + + + + + + + 0 + 0 + + + + - + + + + + + + Main ID: + + + @@ -944,15 +1009,21 @@ - - + + - - + Distance: - - + + + + + 0 + 0 + + - @@ -965,48 +1036,25 @@ - - - - Distance: + + + + + 0 + 0 + - - - - - - Alt. IDs: + + + 200 + 50 + - - - - - - Main ID: - - - - - - - - - - - - - - - - - - - true - - - - - - - - + + + 200 + 150 +