package require ReadoutRESTUI ReadoutUI name ?option value...? name configure option value ?...? set value [name cget option]
This megawidget glues together the ReadoutParameters, ReadoutStatistics and ReadoutState views into a single integrated control panel for Readout program(s) controlled via their REST interfaces.
As such, this view inherits all of the options of its component subviews:
-title
Sets/gets the readonly title label on the paramters part of the view.
-nexttitle
Sets/gets the contents of the entry field that is to hold the title of the next run in the parameters part of the view.
-run
Set/gets the contents of the readonly run number label on the parameters part of the view.
-nextrun
Sets/gets/ the contents of the spinbox that is to hold the next run number in the parameters part of the view.
-titlecommand
Script that will be invoked when the next title entry has been changed in the parameter subview. This script will be passed the new title string.
-runcommand
Specifies a script that is invoked when the run number is changed in the parameter subview's next run number spinboxl The new run number is passed as a parameter to the script.
-currentstate
Sets the current state of the run in the status/state control subview. This can be one of idle, active, paused or inconsistent. This state will appropriately update the label on the variable purpose button.
-statecommand
Sets a script to be called when a button is clicked in the status/state control/subview. The script is passed a string value indicating the desired action. This is one of begin, end, init or shutdown.
-statistics
Passes Readout statistics to the
statistics display sub-view.
The value of this option should be a
statistics dict such as what might
be returned from the getStatistics
method of
ReadoutRESTClient