Compare commits

...

4 Commits

2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,11 @@
Edited for use in PyLoT
JG, igem, 01/2022
"""
import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
import glob
from obspy.core.event import read_events

View File

@ -90,6 +90,7 @@ class TextLogWidget(QtWidgets.QTextEdit):
def __init__(self, parent, highlight_input=False):
super(TextLogWidget, self).__init__(parent)
self.highlight_input = highlight_input
self.append('DUMMY TEXT\n')
def write(self, text):
self.append(text)
@ -107,7 +108,9 @@ class LogWidget(QtWidgets.QWidget):
self.setMinimumHeight(600)
self.stdout = TextLogWidget(self)
self.stdout.write('DUMMY TEXT 2\n')
self.stderr = TextLogWidget(self, highlight_input=True)
self.stderr.write('DUMMY TEXT 2\n')
self.stderr.highlight.connect(self.active_error)
self.tabs = QTabWidget()
@ -221,6 +224,7 @@ class AddMetadataWidget(QWidget):
self.show()
# self.__test__()
# TODO: what is this for? Remove?
def __test__(self):
self.add_item(r'/rscratch/minos14/marcel/git/pylot/tests')
self.add_item(r'/rscratch/minos14/marcel/git/pylot/inputs')