123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- .. This is a autogemerated documentation from python docstrings. It was generated using DStrings2Doc.
- .. module:: controlwidget
- .. _controlwidget:
- Module controlwidget
- ====================
- This module defines the Initial view of the gui
- .. py:class:: LED(QtGui.QWidget)
- Produces a graphical LED
- .. py:method:: __init__(self, parent=None, status=1, height=10, width=10)
- Initialize a LED
- :param parent: (QWidget) parent of this widget
- :param status: (int) (0=out, 1=off, 2=orange, 3=on) initial status of this LED
- :param height: (int) height of the LED
- :param width: (int) width of the LED
- .. py:method:: paintEvent(self, event)
- .. py:method:: set_on(self)
- Set the LED to "on" state
- .. py:method:: set_off(self)
- Set the LED to "off" state
- .. py:method:: set_out(self)
- Set the LED to "OUT" state (that is like an LED without power)
- .. py:method:: set_tri(self)
- Set the LED to "TRI" state (that is led is orange)
- .. py:method:: set_status(self, status)
- Set the status of the led
- :param status: status (in 0, 1, 2, 3)
- .. py:class:: StatusLED(QtGui.QWidget)
- Create a Status LED with Label next to it
- .. py:method:: __init__(self, text, status=None)
- Initialise StatusLED
- :param text: label text next to the LED
- :param status: initial status of the LED
- .. py:method:: set_on(self)
- See set_on of LED Class
- .. py:method:: set_off(self)
- See set_off of LED Class
- .. py:method:: set_out(self)
- See set_out of LED Class
- .. py:method:: set_tri(self)
- See set_tri of LED Class
- .. py:method:: set_status(self, status)
- See set_status of LED Class
- :param status: the status to set the led to
- .. py:class:: BoardControl(kcgw.KCGWidgets)
- The main view of the gui for each board at startup
- .. py:method:: __init__(self, board_id, single=False)
- .. py:method:: toggle_sub_control(self)
- Show or hide the subcontrol buttons
- .. py:method:: all_in_one(self)
- Function that gets called when the Prepare Board Button is pressed.
- It Starts the board, syncs it and sets defaults.
- This is accomplished via the backendinterface module
- .. py:method:: skip_init(self)
- Skip board initialisation progress and read data from board. This will adjust the values in the gui to those
- on the board (for every value that is stored on the board)
- .. py:method:: on_check(self)
- This function is the handler for the status leds on the ControlWidget View.
- Parses the registers and sets the colors of the leds according.
- .. py:class:: ControlWidget(kcgw.KCGWidgets)
- Main Widget that is shown at start of gui.
- .. py:method:: __init__(self)
|