mirror of https://gitlab.com/pamhyr/pamhyr2
pamhyr: Fix pep8.
parent
e343d284d9
commit
137368cc27
|
|
@ -74,6 +74,7 @@ class TableModel(PamhyrTableModel):
|
|||
|
||||
return QVariant()
|
||||
|
||||
|
||||
class TabTableModel(PamhyrTableModel):
|
||||
def _setup_lst(self):
|
||||
self._lst = self._opt_data
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class Worker(QObject):
|
|||
|
||||
self.signalStatus.emit("progress")
|
||||
|
||||
|
||||
class TabWorker(QObject):
|
||||
signalStatus = pyqtSignal(str)
|
||||
|
||||
|
|
@ -63,7 +64,6 @@ class TabWorker(QObject):
|
|||
def study(self):
|
||||
return self._study
|
||||
|
||||
|
||||
@study.setter
|
||||
def study(self, study):
|
||||
self._study = study
|
||||
|
|
@ -75,7 +75,7 @@ class TabWorker(QObject):
|
|||
while True:
|
||||
checker = self._checker_q.get()
|
||||
|
||||
if self._study == None:
|
||||
if self._study is None:
|
||||
self._checker_q.put(checker)
|
||||
time.sleep(5)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
|
||||
if self._tab_widget_checker.study != self._study:
|
||||
self._tab_widget_checker.study = self._study
|
||||
self._tab_widget_checker.update(modules = Modules.STUDY)
|
||||
self._tab_widget_checker.update(modules=Modules.STUDY)
|
||||
|
||||
#########
|
||||
# MODEL #
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ class WidgetChecker(PamhyrWidget):
|
|||
data=[],
|
||||
)
|
||||
|
||||
|
||||
def setup_connections(self):
|
||||
table = self.find(QTableView, f"tableView_checker")
|
||||
table.selectionModel()\
|
||||
|
|
@ -168,8 +167,9 @@ class WidgetChecker(PamhyrWidget):
|
|||
self._worker.study = self._study
|
||||
|
||||
for checker in self._checkers:
|
||||
if self._study == None:
|
||||
if self._study is None:
|
||||
checker.reset()
|
||||
|
||||
self._worker_q.put(checker)
|
||||
|
||||
return
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ from PyQt5.QtWidgets import (
|
|||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class PamhyrListModel(QAbstractListModel):
|
||||
def __init__(self,
|
||||
list_view=None,
|
||||
|
|
|
|||
Loading…
Reference in New Issue