Skip to content
Snippets Groups Projects

Fix slider and Unique not showing multiplexed files

Merged Destiny Kuehn requested to merge fix-issues into master
1 file
+ 7
8
Compare changes
  • Side-by-side
  • Inline
+ 7
8
@@ -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()
@@ -1312,24 +1311,24 @@ class MainWindow(QWidget):
def select_keys(self):
"""
Display blocks from selected key
"""
selectkey = self.unique_box.keys_menu.currentText().split(":")
if selectkey[0] == "*":
self.fill_unique()
return
unique_item = QTreeWidgetItem()
line = []
self.unique_box.unique_info_tree.clear()
for key in self.unique_list:
if selectkey == key.split(":")[1:]:
unique_item = QTreeWidgetItem()
line = []
for var in key.split(":"):
line.append(var)
for i in range(len(line)):
unique_item.setText(i, line[i])
unique_item.setBackgroundColor(i, Qt.white)
unique_item.setBackground(i, QBrush(Qt.white))
self.unique_box.unique_info_tree.addTopLevelItem(unique_item)
return
def fill_unique(self):
"""
@@ -1362,7 +1361,7 @@ class MainWindow(QWidget):
if c:
for i in range(len(line)):
unique_item.setText(i, line[i])
unique_item.setBackgroundColor(i, Qt.cyan)
unique_item.setBackground(i, QBrush(Qt.cyan))
else:
for i in range(len(line)):
unique_item.setText(i, line[i])
Loading