nectarchain.trr_test_suite.gui.TestRunner#
- class TestRunner[source]#
Bases:
QWidgetThe
TestRunnerclass is a GUI application that allows the user to run various tests and display the results. The class provides the following functionality: - Allows the user to select a test from a dropdown menu. - Dynamically generates input fields based on the selected test. - Runs the selected test and displays the output in a text box. - Displays the test results in a plot canvas, with navigation buttons to switch between multiple plots. - Provides a dark-themed UI with custom styling for various UI elements. The class uses the PyQt5 library for the GUI implementation and the Matplotlib library for plotting the test results.Methods
acceptDropsacceptDrops(self) -> bool
accessibleDescriptionaccessibleDescription(self) -> str
accessibleNameaccessibleName(self) -> str
actionEventactionsactions(self) -> List[QAction]
activateWindowaddActionaddActionsadjustSizeautoFillBackgroundautoFillBackground(self) -> bool
backgroundRolebackgroundRole(self) -> QPalette.ColorRole
baseSizebaseSize(self) -> QSize
blockSignalsblockSignals(self, b: bool) -> bool
changeEventcheck_and_display_plotchildAtchildAt(self, p: QPoint) -> Optional[QWidget] childAt(self, ax: int, ay: int) -> Optional[QWidget]
childEventchildrenchildren(self) -> List[QObject]
childrenRectchildrenRect(self) -> QRect
childrenRegionchildrenRegion(self) -> QRegion
Remove old plot files in temp directory.
clearFocusclearMaskcloseclose(self) -> bool
closeEventcolorCountcolorCount(self) -> int
connectNotifycontentsMarginscontentsMargins(self) -> QMargins
contentsRectcontentsRect(self) -> QRect
contextMenuEventcontextMenuPolicycontextMenuPolicy(self) -> Qt.ContextMenuPolicy
createcreateWindowContainercreateWindowContainer(window: Optional[QWindow], parent: Optional[QWidget] = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) -> QWidget
cursorcursor(self) -> QCursor
customEventdebug_layoutdeleteLaterdepthdepth(self) -> int
destroydevTypedevType(self) -> int
devicePixelRatiodevicePixelRatio(self) -> int
devicePixelRatioFdevicePixelRatioF(self) -> float
devicePixelRatioFScaledevicePixelRatioFScale() -> float
disconnectdisconnectNotifyLoads the plots from the pickle files and displays them on the canvas.
dragEnterEventdragLeaveEventdragMoveEventdropEventdumpObjectInfodumpObjectTreedynamicPropertyNamesdynamicPropertyNames(self) -> List[QByteArray]
effectiveWinIdeffectiveWinId(self) -> PyQt5.sip.voidptr
ensurePolishedenterEventeventevent(self, a0: Optional[QEvent]) -> bool
eventFiltereventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) -> bool
findfind(a0: PyQt5.sip.voidptr) -> Optional[QWidget]
findChildfindChild(self, type: Type[QObjectT], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObjectT findChild(self, types: Tuple[Type[QObjectT], ...], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObjectT
findChildrenfindChildren(self, type: Type[QObjectT], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT] findChildren(self, types: Tuple[Type[QObjectT], ...], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT] findChildren(self, type: Type[QObjectT], regExp: QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT] findChildren(self, types: Tuple[Type[QObjectT], ...], regExp: QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT] findChildren(self, type: Type[QObjectT], re: QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT] findChildren(self, types: Tuple[Type[QObjectT], ...], re: QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
focusInEventfocusNextChildfocusNextChild(self) -> bool
focusNextPrevChildfocusNextPrevChild(self, next: bool) -> bool
focusOutEventfocusPolicyfocusPolicy(self) -> Qt.FocusPolicy
focusPreviousChildfocusPreviousChild(self) -> bool
focusProxyfocusProxy(self) -> Optional[QWidget]
focusWidgetfocusWidget(self) -> Optional[QWidget]
fontfont(self) -> QFont
fontInfofontInfo(self) -> QFontInfo
fontMetricsfontMetrics(self) -> QFontMetrics
foregroundRoleforegroundRole(self) -> QPalette.ColorRole
frameGeometryframeGeometry(self) -> QRect
frameSizeframeSize(self) -> QSize
geometrygeometry(self) -> QRect
getContentsMarginsget_parameters_from_modulegrabgrab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) -> QPixmap
grabGesturegrabKeyboardgrabMousegrabShortcutgrabShortcut(self, key: Union[QKeySequence, QKeySequence.StandardKey, Optional[str], int], context: Qt.ShortcutContext = Qt.WindowShortcut) -> int
graphicsEffectgraphicsEffect(self) -> Optional[QGraphicsEffect]
graphicsProxyWidgetgraphicsProxyWidget(self) -> Optional[QGraphicsProxyWidget]
hasFocushasFocus(self) -> bool
hasHeightForWidthhasHeightForWidth(self) -> bool
hasMouseTrackinghasMouseTracking(self) -> bool
hasTabletTrackinghasTabletTracking(self) -> bool
heightheight(self) -> int
heightForWidthheightForWidth(self, a0: int) -> int
heightMMheightMM(self) -> int
hidehideEventinheritsinherits(self, classname: Optional[str]) -> bool
initPainterinit_uiinputMethodEventinputMethodHintsinputMethodHints(self) -> Qt.InputMethodHints
inputMethodQueryinputMethodQuery(self, a0: Qt.InputMethodQuery) -> Any
insertActioninsertActionsinstallEventFilterisActiveWindowisActiveWindow(self) -> bool
isAncestorOfisAncestorOf(self, child: Optional[QWidget]) -> bool
isEnabledisEnabled(self) -> bool
isEnabledToisEnabledTo(self, a0: Optional[QWidget]) -> bool
isFullScreenisFullScreen(self) -> bool
isHiddenisHidden(self) -> bool
isLeftToRightisLeftToRight(self) -> bool
isMaximizedisMaximized(self) -> bool
isMinimizedisMinimized(self) -> bool
isModalisModal(self) -> bool
isRightToLeftisRightToLeft(self) -> bool
isSignalConnectedisSignalConnected(self, signal: QMetaMethod) -> bool
isVisibleisVisible(self) -> bool
isVisibleToisVisibleTo(self, a0: Optional[QWidget]) -> bool
isWidgetTypeisWidgetType(self) -> bool
isWindowisWindow(self) -> bool
isWindowModifiedisWindowModified(self) -> bool
isWindowTypeisWindowType(self) -> bool
keyPressEventkeyReleaseEventkeyboardGrabberkeyboardGrabber() -> Optional[QWidget]
killTimerlayoutlayout(self) -> Optional[QLayout]
layoutDirectionlayoutDirection(self) -> Qt.LayoutDirection
leaveEventlocalelocale(self) -> QLocale
logicalDpiXlogicalDpiX(self) -> int
logicalDpiYlogicalDpiY(self) -> int
lowermapFrommapFrom(self, a0: Optional[QWidget], a1: QPoint) -> QPoint
mapFromGlobalmapFromGlobal(self, a0: QPoint) -> QPoint
mapFromParentmapFromParent(self, a0: QPoint) -> QPoint
mapTomapTo(self, a0: Optional[QWidget], a1: QPoint) -> QPoint
mapToGlobalmapToGlobal(self, a0: QPoint) -> QPoint
mapToParentmapToParent(self, a0: QPoint) -> QPoint
maskmask(self) -> QRegion
maximumHeightmaximumHeight(self) -> int
maximumSizemaximumSize(self) -> QSize
maximumWidthmaximumWidth(self) -> int
metaObjectmetaObject(self) -> Optional[QMetaObject]
metricmetric(self, a0: QPaintDevice.PaintDeviceMetric) -> int
minimumHeightminimumHeight(self) -> int
minimumSizeminimumSize(self) -> QSize
minimumSizeHintminimumSizeHint(self) -> QSize
minimumWidthminimumWidth(self) -> int
mouseDoubleClickEventmouseGrabbermouseGrabber() -> Optional[QWidget]
mouseMoveEventmousePressEventmouseReleaseEventmovemoveEventmoveToThreadnativeEventnativeParentWidgetnativeParentWidget(self) -> Optional[QWidget]
nextInFocusChainnextInFocusChain(self) -> Optional[QWidget]
normalGeometrynormalGeometry(self) -> QRect
objectNameobjectName(self) -> str
overrideWindowFlagsoverrideWindowStatepaintEnginepaintEngine(self) -> Optional[QPaintEngine]
paintEventpaintingActivepaintingActive(self) -> bool
palettepalette(self) -> QPalette
parentparent(self) -> Optional[QObject]
parentWidgetparentWidget(self) -> Optional[QWidget]
physicalDpiXphysicalDpiX(self) -> int
physicalDpiYphysicalDpiY(self) -> int
pospos(self) -> QPoint
previousInFocusChainpreviousInFocusChain(self) -> Optional[QWidget]
Handle the process when it finishes.
propertyproperty(self, name: Optional[str]) -> Any
pyqtConfigureEach keyword argument is either the name of a Qt property or a Qt signal.
raise_Reads and displays the process output in real-time.
receiversreceivers(self, signal: PYQT_SIGNAL) -> int
rectrect(self) -> QRect
releaseKeyboardreleaseMousereleaseShortcutremoveActionremoveEventFilterrenderrepaintresizeresizeEventrestoreGeometryrestoreGeometry(self, geometry: Union[QByteArray, bytes, bytearray]) -> bool
run_testsaveGeometrysaveGeometry(self) -> QByteArray
screenscreen(self) -> Optional[QScreen]
scrollsendersender(self) -> Optional[QObject]
senderSignalIndexsenderSignalIndex(self) -> int
setAcceptDropssetAccessibleDescriptionsetAccessibleNamesetAttributesetAutoFillBackgroundsetBackgroundRolesetBaseSizesetContentsMarginssetContextMenuPolicysetCursorsetDisabledsetEnabledsetFixedHeightsetFixedSizesetFixedWidthsetFocussetFocusPolicysetFocusProxysetFontsetForegroundRolesetGeometrysetGraphicsEffectsetHiddensetInputMethodHintssetLayoutsetLayoutDirectionsetLocalesetMasksetMaximumHeightsetMaximumSizesetMaximumWidthsetMinimumHeightsetMinimumSizesetMinimumWidthsetMouseTrackingsetObjectNamesetPalettesetParentsetPropertysetProperty(self, name: Optional[str], value: Any) -> bool
setShortcutAutoRepeatsetShortcutEnabledsetSizeIncrementsetSizePolicysetStatusTipsetStylesetStyleSheetsetTabOrdersetTabletTrackingsetToolTipsetToolTipDurationsetUpdatesEnabledsetVisiblesetWhatsThissetWindowFilePathsetWindowFlagsetWindowFlagssetWindowIconsetWindowIconTextsetWindowModalitysetWindowModifiedsetWindowOpacitysetWindowRolesetWindowStatesetWindowTitlesharedPaintersharedPainter(self) -> Optional[QPainter]
showshowEventshowFullScreenshowMaximizedshowMinimizedshowNormalshow_helpshow_next_plotshow_previous_plotsignalsBlockedsignalsBlocked(self) -> bool
sizesize(self) -> QSize
sizeHintsizeHint(self) -> QSize
sizeIncrementsizeIncrement(self) -> QSize
sizePolicysizePolicy(self) -> QSizePolicy
stackUnderstartTimerstartTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) -> int
statusTipstatusTip(self) -> str
stylestyle(self) -> Optional[QStyle]
styleSheetstyleSheet(self) -> str
tabletEventtestAttributetestAttribute(self, attribute: Qt.WidgetAttribute) -> bool
threadthread(self) -> Optional[QThread]
timerEventtoolTiptoolTip(self) -> str
toolTipDurationtoolTipDuration(self) -> int
trtr(self, sourceText: Optional[str], disambiguation: Optional[str] = None, n: int = -1) -> str
underMouseunderMouse(self) -> bool
ungrabGestureunsetCursorunsetLayoutDirectionunsetLocaleupdateupdateGeometryupdateMicroFocusupdate_parametersUpdates the canvas with the current plot.
updatesEnabledupdatesEnabled(self) -> bool
visibleRegionvisibleRegion(self) -> QRegion
whatsThiswhatsThis(self) -> str
wheelEventwidthwidth(self) -> int
widthMMwidthMM(self) -> int
winIdwinId(self) -> PyQt5.sip.voidptr
windowwindow(self) -> Optional[QWidget]
windowFilePathwindowFilePath(self) -> str
windowFlagswindowFlags(self) -> Qt.WindowFlags
windowHandlewindowHandle(self) -> Optional[QWindow]
windowIconwindowIcon(self) -> QIcon
windowIconTextwindowIconText(self) -> str
windowModalitywindowModality(self) -> Qt.WindowModality
windowOpacitywindowOpacity(self) -> float
windowRolewindowRole(self) -> str
windowStatewindowState(self) -> Qt.WindowStates
windowTitlewindowTitle(self) -> str
windowTypewindowType(self) -> Qt.WindowType
xx(self) -> int
yy(self) -> int
Attributes
DrawChildrenDrawWindowBackgroundIgnoreMaskPdmDepthPdmDevicePixelRatioPdmDevicePixelRatioScaledPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMcustomContextMenuRequested(QPoint)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
destroyed(QObject*)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChanged(QString)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObjecttest_moduleswindowIconChanged(QIcon)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowIconTextChanged(QString)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowTitleChanged(QString)pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL