diff --git a/mseedpeek/mseedpeek.py b/mseedpeek/mseedpeek.py index b86546a5c72e982fa40a136dff8875b417710926..4824bc56fdf6da5e4c0f2e693dd7348557cdecea 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