Skip to content

Commit

Permalink
apply qtpy framework
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Oct 28, 2021
1 parent b5a234a commit dce397e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class DAQ_Move_DAQmx(DAQ_NIDAQmx_Actuator):
"""
==================== ========================
**Attributes** **Type**
*data_grabed_signal* instance of pyqtSignal
*data_grabed_signal* instance of Signal
*params* dictionnary list
*task*
==================== ========================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class DAQ_0DViewer_DAQmx(DAQ_NIDAQmx_Viewer):
"""
==================== ========================
**Attributes** **Type**
*data_grabed_signal* instance of pyqtSignal
*data_grabed_signal* instance of Signal
*params* dictionnary list
*task*
==================== ========================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DAQ_1DViewer_DAQmx(DAQ_NIDAQmx_Viewer):
"""
==================== ========================
**Attributes** **Type**
*data_grabed_signal* instance of pyqtSignal
*data_grabed_signal* instance of Signal
*params* dictionnary list
*task*
==================== ========================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtCore import pyqtSignal, QThread
from qtpy import QtWidgets, QtCore
from qtpy.QtCore import Signal, QThread
from pymodaq.daq_utils.daq_utils import ThreadCommand, DataFromPlugins, Axis, getLineInfo
import numpy as np
from pymodaq.daq_viewer.utility_classes import DAQ_Viewer_base
Expand Down Expand Up @@ -241,7 +241,7 @@ def addNew(self, typ):


class DAQ_NIDAQmx_base(DAQmx):
data_grabed_signal = pyqtSignal(list)
data_grabed_signal = Signal(list)

params =[{'title': 'Refresh hardware:', 'name': 'refresh_hardware', 'type': 'bool', 'value': False},
{'title': 'Signal type:', 'name': 'NIDAQ_type', 'type': 'list', 'values': DAQ_NIDAQ_source.names()},
Expand Down Expand Up @@ -461,7 +461,7 @@ class DAQ_NIDAQmx_Viewer(DAQ_Viewer_base, DAQ_NIDAQmx_base):
"""
==================== ========================
**Attributes** **Type**
*data_grabed_signal* instance of pyqtSignal
*data_grabed_signal* instance of Signal
*params* dictionnary list
*task*
==================== ========================
Expand All @@ -471,7 +471,7 @@ class DAQ_NIDAQmx_Viewer(DAQ_Viewer_base, DAQ_NIDAQmx_base):
refresh_hardware
"""

data_grabed_signal = pyqtSignal(list)
data_grabed_signal = Signal(list)
live_mode_available = True
params = viewer_params + DAQ_NIDAQmx_base.params

Expand Down

0 comments on commit dce397e

Please sign in to comment.