forked from awendt/pyrelacs
cosmetics
This commit is contained in:
@@ -16,7 +16,6 @@ import nixio as nix
|
||||
import pyqtgraph as pg
|
||||
|
||||
from pathlib import Path as path
|
||||
from importlib.resources import files as rsrc_files
|
||||
from scipy.signal import welch, find_peaks
|
||||
|
||||
from ..worker import Worker
|
||||
@@ -100,7 +99,7 @@ class PyRelacs(QMainWindow):
|
||||
file_menu = menu.addMenu("&File")
|
||||
file_menu.addAction(self._rlx_exitaction)
|
||||
file_menu.addAction(self._rlx_aboutaction)
|
||||
|
||||
|
||||
device_menu = menu.addMenu("&DAQ")
|
||||
device_menu.addAction(self._daq_connectaction)
|
||||
device_menu.addAction(self._daq_disconnectaction)
|
||||
@@ -109,7 +108,6 @@ class PyRelacs(QMainWindow):
|
||||
|
||||
help_menu = menu.addMenu("&Help")
|
||||
help_menu.addSeparator()
|
||||
# help_menu.addAction(self._about_action)
|
||||
# help_menu.addAction(self._help_action)
|
||||
self.setMenuBar(menu)
|
||||
|
||||
@@ -117,7 +115,7 @@ class PyRelacs(QMainWindow):
|
||||
rlx_toolbar = QToolBar("Relacs")
|
||||
rlx_toolbar.addAction(self._rlx_exitaction)
|
||||
rlx_toolbar.setIconSize(QSize(24, 24))
|
||||
|
||||
|
||||
self.addToolBar(Qt.ToolBarArea.TopToolBarArea, rlx_toolbar)
|
||||
daq_toolbar = QToolBar("DAQ")
|
||||
daq_toolbar.addAction(self._daq_connectaction)
|
||||
@@ -128,12 +126,12 @@ class PyRelacs(QMainWindow):
|
||||
repro_toolbar = QToolBar("Repros")
|
||||
repro_names, file_names = self.repros.names_of_repros()
|
||||
for rep, fn in zip(repro_names, file_names):
|
||||
individual_repro_button = QAction(rep, self)
|
||||
individual_repro_button.setStatusTip(rep)
|
||||
individual_repro_button.triggered.connect(
|
||||
repro_action = QAction(rep, self)
|
||||
repro_action.setStatusTip(rep)
|
||||
repro_action.triggered.connect(
|
||||
lambda checked, n=rep, f=fn: self.run_repro(n, f)
|
||||
)
|
||||
repro_toolbar.addAction(individual_repro_button)
|
||||
repro_toolbar.addAction(repro_action)
|
||||
self.addToolBar(Qt.ToolBarArea.TopToolBarArea, repro_toolbar)
|
||||
|
||||
def create_buttons(self):
|
||||
|
||||
Reference in New Issue
Block a user