0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix: content always aligned to centre

This commit is contained in:
wyzula-jan
2023-09-06 15:03:55 +02:00
parent 3132b4fb4d
commit 74884a3707

View File

@ -580,6 +580,12 @@ class MotorApp(QWidget):
self.saved_motor_map.setData(pos=self.saved_motor_positions, brush=brushes)
for row in range(table.rowCount()):
for col in range(table.columnCount()):
item = table.item(row, col)
if item:
item.setTextAlignment(Qt.AlignCenter)
table.resizeColumnsToContents()
def move_to_row_coordinates(self, table, row):
@ -694,7 +700,7 @@ class MotorApp(QWidget):
self.generate_table_coordinate(
self.tableWidget_coordinates,
self.motor_thread.retrieve_coordinates(),
tag=f"Current {self.tag_N}",
tag=f"Cur {self.tag_N}",
precision=self.precision,
)