sknrf.view.desktop.sequencer.widgets module

class sknrf.view.desktop.sequencer.widgets.SequencerState

Bases: object

Store the current state of the Sequencer Menu.

module = None
variable = None
variable_name = ''
action = None
is_valid_code = False
class sknrf.view.desktop.sequencer.widgets.ObjectDialog(obj, parent=None, globals_={'AbstractModel': <class 'sknrf.model.base.AbstractModel'>, 'ActionItem': <class 'sknrf.model.sequencer.base.ActionItem'>, 'ActionItemDataRole': <enum 'ActionItemDataRole'>, 'ActionItemDataType': <enum 'ActionItemDataType'>, 'ActionItemModel': <class 'sknrf.model.sequencer.base.ActionItemModel'>, 'ActionTreeView': <class 'sknrf.view.desktop.sequencer.widgets.ActionTreeView'>, 'BrowserCol': <enum 'BrowserCol'>, 'ImportListView': <class 'sknrf.view.desktop.sequencer.widgets.ImportListView'>, 'Info': <class 'sknrf.utilities.numeric.Info'>, 'LineNumberArea': <class 'sknrf.view.desktop.sequencer.code.LineNumberArea'>, 'ObjectDialog': <class 'sknrf.view.desktop.sequencer.widgets.ObjectDialog'>, 'OrderedDict': <class 'collections.OrderedDict'>, 'Parameter': <class 'inspect.Parameter'>, 'QApplication': <class 'PySide6.QtWidgets.QApplication'>, 'QCompleter': <class 'PySide6.QtWidgets.QCompleter'>, 'QDialog': <class 'PySide6.QtWidgets.QDialog'>, 'QDrag': <class 'PySide6.QtGui.QDrag'>, 'QGridLayout': <class 'PySide6.QtWidgets.QGridLayout'>, 'QLabel': <class 'PySide6.QtWidgets.QLabel'>, 'QLineEdit': <class 'PySide6.QtWidgets.QLineEdit'>, 'QListView': <class 'PySide6.QtWidgets.QListView'>, 'QMessageBox': <class 'PySide6.QtWidgets.QMessageBox'>, 'QPainter': <class 'PySide6.QtGui.QPainter'>, 'QPixmap': <class 'PySide6.QtGui.QPixmap'>, 'QPoint': <class 'PySide6.QtCore.QPoint'>, 'QRect': <class 'PySide6.QtCore.QRect'>, 'QTreeView': <class 'PySide6.QtWidgets.QTreeView'>, 'Qt': <class 'PySide6.QtCore.Qt'>, 'QtBrowserItem': <class 'qtpropertybrowser.QtBrowserItem'>, 'SequenceTreeView': <class 'sknrf.view.desktop.sequencer.widgets.SequenceTreeView'>, 'SequencerState': <class 'sknrf.view.desktop.sequencer.widgets.SequencerState'>, 'Signature': <class 'inspect.Signature'>, 'TreePropertyBrowser': <class 'sknrf.widget.propertybrowser.view.base.TreePropertyBrowser'>, 'Ui_objectDialog': <class 'sknrf.view.desktop.sequencer.QObjectDialog_ui.Ui_objectDialog'>, 'VariableTableWidget': <class 'sknrf.view.desktop.sequencer.widgets.VariableTableWidget'>, '__annotations__': {}, '__author__': 'dtbespal', '__builtins__': {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EncodingWarning': <class 'EncodingWarning'>, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__feature_import__': <built-in function __feature_import__>, '__import__': <built-in function __feature_import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__orig_import__': <built-in function __import__>, '__package__': '', '__pybind11_internals_v4_gcc_libstdcpp_cxxabi1011__': <capsule object NULL>, '__pybind11_internals_v4_gcc_libstdcpp_cxxabi1014__': <capsule object NULL>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), 'abs': <built-in function abs>, 'aiter': <built-in function aiter>, 'all': <built-in function all>, 'anext': <built-in function anext>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'breakpoint': <built-in function breakpoint>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2022 Python Software Foundation. All Rights Reserved.  Copyright (c) 2000 BeOpen.com. All Rights Reserved.  Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved.  Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands     for supporting Python development.  See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <class 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <class 'enumerate'>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'filter': <class 'filter'>, 'float': <class 'float'>, 'format': <built-in function format>, 'frozenset': <class 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <class 'int'>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <class 'list'>, 'locals': <built-in function locals>, 'map': <class 'map'>, 'max': <built-in function max>, 'memoryview': <class 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <class 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <class 'property'>, 'qApp': None, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <class 'range'>, 'repr': <built-in function repr>, 'reversed': <class 'reversed'>, 'round': <built-in function round>, 'set': <class 'set'>, 'setattr': <built-in function setattr>, 'slice': <class 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'sum': <built-in function sum>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'vars': <built-in function vars>, 'zip': <class 'zip'>}, '__cached__': '/home/dylan_bespalko/repos/machine-configs/kubuntu_22.04-py3.10-none-linux_x86_64/package/sknrf_core/src/sknrf/view/desktop/sequencer/__pycache__/widgets.cpython-310.pyc', '__doc__': None, '__file__': '/home/dylan_bespalko/repos/machine-configs/kubuntu_22.04-py3.10-none-linux_x86_64/package/sknrf_core/src/sknrf/view/desktop/sequencer/widgets.py', '__loader__': <_frozen_importlib_external.SourceFileLoader object>, '__name__': 'sknrf.view.desktop.sequencer.widgets', '__package__': 'sknrf.view.desktop.sequencer', '__spec__': ModuleSpec(name='sknrf.view.desktop.sequencer.widgets', loader=<_frozen_importlib_external.SourceFileLoader object>, origin='/home/dylan_bespalko/repos/machine-configs/kubuntu_22.04-py3.10-none-linux_x86_64/package/sknrf_core/src/sknrf/view/desktop/sequencer/widgets.py'), 'camel2underscore': <function camel2underscore>, 'green_32_rc': <module 'sknrf.icons.green_32_rc' from '/home/dylan_bespalko/repos/machine-configs/kubuntu_22.04-py3.10-none-linux_x86_64/package/sknrf_core/src/sknrf/icons/green_32_rc.py'>, 'icon_map': {'attribute': ':/PNG/yellow/32/circled_a.png', 'class': ':/PNG/blue/32/circled_c.png', 'function': ':/PNG/magenta/32/circled_f.png', 'method': ':/PNG/red/32/circled_m.png', 'module': ':/PNG/cyan/32/circled_m.png', 'package': ':/PNG/green/32/circled_p.png', 'property': ':/PNG/orange/32/circled_p.png', 'static_method': ':/PNG/violet/32/circled_s.png'}, 'importlib': <module 'importlib' from '/usr/lib/python3.10/importlib/__init__.py'>, 'inspect': <module 'inspect' from '/usr/lib/python3.10/inspect.py'>, 'pickle': <module 'pickle' from '/usr/lib/python3.10/pickle.py'>, 'pkgutil': <module 'pkgutil' from '/usr/lib/python3.10/pkgutil.py'>, 'red_32_rc': <module 'sknrf.icons.red_32_rc' from '/home/dylan_bespalko/repos/machine-configs/kubuntu_22.04-py3.10-none-linux_x86_64/package/sknrf_core/src/sknrf/icons/red_32_rc.py'>, 'warn': <built-in function warn>, 'weakref': <module 'weakref' from '/usr/lib/python3.10/weakref.py'>}, locals_={'__classcell__': <cell at 0x7f5dbcc24130: Shiboken.ObjectType object>, '__doc__': 'Class object/function object argument entry dialog.\n\n    Interactive entry dialog for class object/function object argument specification that displays the following information:\n        Module: Parent module name (Read-Only)\n        Return: Object/return variable name\n        Argument_Name[1]: Argument_Value[1]\n        Argument_Name[2]: Argument_Value[2]\n        ...\n        Argument_Name[n]: Argument_Value[n]\n\n    Parameters\n    ----------\n    obj : object\n        A class object or function object.\n    globals : dict\n        A dictionary containing the global variable namespace for eval/exec commands.\n    locals : dict\n        A dictionary containing the local variable namespace for eval/exec commands.\n    parent : QWidget\n        Parent GUI container.\n\n    ', '__init__': <function ObjectDialog.__init__>, '__module__': 'sknrf.view.desktop.sequencer.widgets', '__qualname__': 'ObjectDialog', 'accept': <function ObjectDialog.accept>, 'argument_edit_finished': <function ObjectDialog.argument_edit_finished>, 'connect_signals': <function ObjectDialog.connect_signals>, 'disconnect_signals': <function ObjectDialog.disconnect_signals>, 'return_edit_finished': <function ObjectDialog.return_edit_finished>, 'set_return_argument_text': <function ObjectDialog.set_return_argument_text>}, existing_arguments=())

Bases: QDialog, Ui_objectDialog

connect_signals()
disconnect_signals()
argument_edit_finished()

Evaluates the function arguments to determine if the user input is valid.

set_return_argument_text(return_argument_text)
return_edit_finished()

Stores the name of the return variable.

accept()

Sets the DialogCode to Accepted and returns to the main window provided if all arguments have a specified value.

staticMetaObject = PySide6.QtCore.QMetaObject("ObjectDialog" inherits "QDialog": )
class sknrf.view.desktop.sequencer.widgets.ActionTreeView(parent=None, model=None, package=None, base_class=<class 'sknrf.model.base.AbstractModel'>, enable_methods=True)

Bases: QTreeView

connect_signals()
disconnect_signals()
set_package(package)

Sets the top-level package containing actions and re-populates the tree model.

set_info_edit(info_edit)

Sets a reference to the info_edit widget.

mousePressEvent(self, event: PySide6.QtGui.QMouseEvent) None
mouseMoveEvent(self, event: PySide6.QtGui.QMouseEvent) None
currentChanged(current, previous)

Updates the info edit widget with documentation from the current selected item.

Parameters:
currentActionItem

current selected item

previousActionItem

previous selected item

update()

Updates the ActionItemTree model with all the action items found inside the specified package.

staticMetaObject = PySide6.QtCore.QMetaObject("ActionTreeView" inherits "QTreeView": )
class sknrf.view.desktop.sequencer.widgets.ImportListView(parent=None, model=None)

Bases: QListView

set_parent(parent)

Sets the parent widget.

Parameters:
parentQWidget

Parent GUI container.

mousePressEvent(self, event: PySide6.QtGui.QMouseEvent) None
mouseMoveEvent(self, e: PySide6.QtGui.QMouseEvent) None
keyPressEvent(self, event: PySide6.QtGui.QKeyEvent) None
dragEnterEvent(self, event: PySide6.QtGui.QDragEnterEvent) None
dropEvent(self, e: PySide6.QtGui.QDropEvent) None
currentChanged(current, previous)

Updates the Sequencer State with the current selected module.

Parameters:
currentActionItem

current selected item

previousActionItem

previous selected item

staticMetaObject = PySide6.QtCore.QMetaObject("ImportListView" inherits "QListView": )
class sknrf.view.desktop.sequencer.widgets.VariableTableWidget(parent=None, model=None)

Bases: TreePropertyBrowser

connect_signals()
disconnect_signals()
set_parent(parent)

Sets the parent widget.

Parameters:
parentQWidget

Parent GUI container.

model()

Gets the ActionItemModel.

Returns:
OrderedDict

The model.

set_model(model, expanded=False)

Sets the model.

Parameters:
modelActionItemModel

The model.

action_model()

Gets the PropertyBrowser model

Returns:
ActionItemModel

The model.

clear()

Clears the Model.

slot_set_value(property_, value, model=False)

Sets an attribute value of the current selected variable.

Parameters:
property_QtProperty

Current selected variable attribute.

valueobject

new value.

slot_set_range(property_, min_, max_, model=None)

Sets an attribute min/max range of the current selected variable.

Parameters:
property_QtProperty

Current selected variable attribute.

min_float

minimum value.

max_float

maximum value.

slot_set_pk_avg(property_, pk_avg, model=None)

Sets an attribute pk/average display value of the current selected variable.

Parameters:
property_QtProperty

Current selected variable attribute.

pk_avgPkAvg

Pk or Avg.

slot_set_check(property_, display, model=None)

Sets an attribute check value of the current selected variable.

Parameters:
property_: QtProperty

Current selected variable attribute.

checkbool

The user-defined check-box value.

keyPressEvent(self, event: PySide6.QtGui.QKeyEvent) None
dragEnterEvent(self, event: PySide6.QtGui.QDragEnterEvent) None
dragMoveEvent(self, event: PySide6.QtGui.QDragMoveEvent) None
dropEvent(self, event: PySide6.QtGui.QDropEvent) None
set_current_object(browser_item)

Updates the Sequencer State with the current selected variable.

Parameters:
currentQtBrowserItem

current selected item

update(frame=None)

Updates the variable property browser.

If sequencer is running (and a breakpoint is reached), the local variables in the current frame are displayed, otherwise the property browser only contains the variables that were manually declared by the user.

Parameters:
frameframe

Current frame provided by the debugger.

staticMetaObject = PySide6.QtCore.QMetaObject("VariableTableWidget" inherits "TreePropertyBrowser": )
class sknrf.view.desktop.sequencer.widgets.SequenceTreeView(parent=None, model=None)

Bases: QTreeView

set_parent(parent)

Sets the parent widget.

Parameters:
parentQWidget

Parent GUI container.

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

Gets the breakpoint list.

Returns:
set

A list of breakpoint line numbers.

set_breakpoints(breakpoints)

Sets the breakpoint list.

Parameters:
breakpointsset

A list of breakpoint line numbers.

active_breakpoint()

Gets the active breakpoint.

Returns:
int

The active breakpoint line number.

set_active_breakpoint(active_breakpoint)

Sets the active breakpoint.

Parameters:
active_breakpointint

The active breakpoint line number.

clicked_break_points(position)

Adds line number closest to position to the breakpoints list.

Parameters:
positionQPoint

position in the line_number_area where a breakpoint was selected.

update_line_number_area(rect, dy)

Updates the line_number_area when the content Scroll Area changes.

Parameters:
rectQRect

The rectangle that defines the viewport of the Scroll Area

update_line_number_area_width(new_block_count)
line_number_area_width()
line_number_paint_event(event)

Paints the line numbers, selected breakpoints, and active breakpoint.

mousePressEvent(self, event: PySide6.QtGui.QMouseEvent) None
mouseMoveEvent(self, event: PySide6.QtGui.QMouseEvent) None
mouseDoubleClickEvent(self, event: PySide6.QtGui.QMouseEvent) None
keyPressEvent(self, event: PySide6.QtGui.QKeyEvent) None
dragEnterEvent(self, event: PySide6.QtGui.QDragEnterEvent) None
dropEvent(self, event: PySide6.QtGui.QDropEvent) None
resizeEvent(self, event: PySide6.QtGui.QResizeEvent) None
staticMetaObject = PySide6.QtCore.QMetaObject("SequenceTreeView" inherits "QTreeView": )