From 19269d6e55a0d4be393dcb2720356edf1525c388 Mon Sep 17 00:00:00 2001 From: destinyk <destiny.kuehn@student.nmt.edu> Date: Wed, 17 Jan 2024 13:44:59 -0700 Subject: [PATCH] fix pyside6 traceback issues --- mseedpeek/mseedpeek.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mseedpeek/mseedpeek.py b/mseedpeek/mseedpeek.py index b86546a..4824bc5 100644 --- a/mseedpeek/mseedpeek.py +++ b/mseedpeek/mseedpeek.py @@ -156,7 +156,7 @@ from PySide6.QtWidgets import (QApplication, QWidget, QTabWidget, QMessageBox, QProgressDialog, QTreeWidget, QTreeWidgetItem) from PySide6.QtCore import (Qt, QObject, Signal, QThread, QTimer, QEventLoop) -from PySide6.QtGui import QColor +from PySide6.QtGui import QColor, QBrush from mseedpeek.libtrace import * from mseedpeek.mseedInfo import * @@ -800,7 +800,6 @@ class MainWindow(QWidget): self.blktype_box.hide() self.blkinfo_box.hide() self.blk_vars_box.hide() - self.slider_box.hide() else: widget = self.jump_box.currentWidget() for child in widget.findChildren(QWidget): @@ -1091,7 +1090,7 @@ class MainWindow(QWidget): self.slider_box.slider.blockSignals(True) self.slider_box.jump_menu.blockSignals(True) self.slider_box.slider.setTickPosition( - self.slider_box.slider.TicksBelow) + QSlider.TicksBelow) self.slider_box.slider.setRange(0, self.num_blocks - 1) i = 0 self.slider_box.jump_menu.clear() @@ -1327,7 +1326,8 @@ class MainWindow(QWidget): line.append(var) for i in range(len(line)): unique_item.setText(i, line[i]) - unique_item.setBackgroundColor(i, Qt.white) + # unique_item.setBackgroundColor + unique_item.setBackground(i, QBrush(Qt.white)) self.unique_box.unique_info_tree.addTopLevelItem(unique_item) return -- GitLab