sknrf.view.desktop.device.menu module

Device Views that define GUI interaction with device models

class sknrf.view.desktop.device.menu.DeviceTestThread(func, *args)

Bases: QThread

staticMetaObject = PySide6.QtCore.QMetaObject("DeviceTestThread" inherits "QThread": )
class sknrf.view.desktop.device.menu.DeviceSideView(driver_package, base_class=<class 'sknrf.device.base.AbstractDevice'>, model=None, model_icon=<PySide6.QtGui.QIcon(null)>, parent=None)

Bases: AbstractSideView, QFrame, Ui_deviceLoadFrame

connect_signals(*args, **kwargs)
disconnect_signals(*args, **kwargs)
update_driver_map()

Updates the device driver list based on the contents of the device driver_package folder.

set_model(model)
update(self) None
update(self, arg__1: PySide6.QtCore.QRect) None
update(self, arg__1: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect]) None
update(self, x: int, y: int, w: int, h: int) None
staticMetaObject = PySide6.QtCore.QMetaObject("DeviceSideView" inherits "QFrame": Methods:   #34 type=Signal, signature=update_main_window() )
class sknrf.view.desktop.device.menu.PropertyFrame(parent=None)

Bases: QFrame, Ui_propertyFrame

staticMetaObject = PySide6.QtCore.QMetaObject("PropertyFrame" inherits "QFrame": )
class sknrf.view.desktop.device.menu.DeviceMenuView(driver_package, base_class=<class 'sknrf.device.base.AbstractDevice'>, model=None, model_args=(), model_icon=<PySide6.QtGui.QIcon(null)>, parent=None)

Bases: AbstractView, QMainWindow, Ui_deviceMenuView

device_selected
device_loaded
device_removed
single_measurement
connect_signals(*args, **kwargs)
disconnect_signals(*args, **kwargs)
set_model(model)
selected_property_tab(_)
set_new_model(new_model)
triggered_single()
clicked_on_off()
select_driver(driver_idx)

Creates a new model instance by calling the __new__() function of the selected device driver

Args:

driver_idx (idx): The index of the new device model in the combo box

load_driver()

Connects and initializes the device by calling __init__() function of the device driver with the provided address map

clicked_test_driver()
reset()
update(on_off=False, address=False, firmware=False, value=False, preview=False)

Updates the GUI.

The entire menu will update by default.

Keyword Args:

on_off (bool): Update only the on_off button if True address (bool): Update only the address table if True firmware (bool): Update only the firmware table if True value (bool): Update only the value table if True preview (bool): Update only the preview frame if True

closeEvent(self, event: PySide6.QtGui.QCloseEvent) None
staticMetaObject = PySide6.QtCore.QMetaObject("DeviceMenuView" inherits "QMainWindow": Methods:   #40 type=Signal, signature=device_selected(PyObject), parameters=PyObject   #41 type=Signal, signature=device_loaded(PyObject), parameters=PyObject   #42 type=Signal, signature=device_removed()   #43 type=Signal, signature=single_measurement() )
class sknrf.view.desktop.device.menu.DUTMenuView(driver_package, base_class=<class 'sknrf.device.base.AbstractDevice'>, model=None, model_args=(), model_icon=<PySide6.QtGui.QIcon(null)>, parent=None)

Bases: DeviceMenuView

staticMetaObject = PySide6.QtCore.QMetaObject("DUTMenuView" inherits "DeviceMenuView": )