script_run_dialog
frog.gui.measure_script.script_run_dialog
¤
Provides a dialog to display the progress of a running measure script.
Classes¤
ScriptRunDialog(script_runner)
¤
Bases: QDialog
A dialog to display the progress of a running measure script.
Create a new ScriptRunDialog.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
script_runner
|
ScriptRunner
|
The ScriptRunner managing the current script |
required |
Source code in frog/gui/measure_script/script_run_dialog.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
Functions¤
closeEvent(event)
¤
Abort the measure script.
Source code in frog/gui/measure_script/script_run_dialog.py
113 114 115 116 117 118 |
|
hideEvent(event)
¤
Hide the dialog.
Source code in frog/gui/measure_script/script_run_dialog.py
120 121 122 123 |
|
keyPressEvent(event)
¤
Intercept when user presses escape to confirm whether to close dialog.
Source code in frog/gui/measure_script/script_run_dialog.py
125 126 127 128 129 130 131 |
|
Functions¤
get_total_steps(script)
¤
Get the total number of steps that a measure script will require.
Each Measurement is repeated n times, plus we have to move into position once per Measurement. The whole script is repeated m times.
Source code in frog/gui/measure_script/script_run_dialog.py
19 20 21 22 23 24 25 |
|