From 3cf0b0b42529c41bfec0b21cdf03eb97d4db69d9 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Fri, 13 Oct 2023 17:15:56 -0500 Subject: [PATCH] Fix selection enums to use QTableWidget PySide6 requires us to do this. Signed-off-by: Patrick Avery --- hexrd/ui/table_selector_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hexrd/ui/table_selector_widget.py b/hexrd/ui/table_selector_widget.py index f2a886e3f..4def84216 100644 --- a/hexrd/ui/table_selector_widget.py +++ b/hexrd/ui/table_selector_widget.py @@ -142,7 +142,7 @@ def selected_columns(self): class TableRowSelectorDialog(TableSelectorDialog): def set_options(self): super().set_options() - self.table.setSelectionBehavior(self.table.SelectRows) + self.table.setSelectionBehavior(QTableWidget.SelectRows) self.table.verticalHeader().hide() self.table.horizontalHeader().setStretchLastSection(True) @@ -156,7 +156,7 @@ def on_selection_changed(self): class TableSingleRowSelectorDialog(TableRowSelectorDialog): def set_options(self): super().set_options() - self.table.setSelectionMode(self.table.SingleSelection) + self.table.setSelectionMode(QTableWidget.SingleSelection) @property def selected_row(self):