You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a dialog to *display a calculator for numeric entry*, such as origin offset.
2741
+
This is a dialog to *display a calculator for numeric entry*, such as origin offset, spindle RPM, etc.
2742
2742
2743
2743
It returns the entry via `STATUS` messages using a Python `DICT`.
2744
2744
@@ -2748,12 +2748,15 @@ When using ``STATUS``'s `request-dialog` function, the default launch name is *`
2748
2748
2749
2749
It is based on PyQt's _QDialog_.
2750
2750
2751
-
==== INI file options for CALCULATOR
2751
+
==== Preferences file options
2752
2752
2753
-
In the `DISPLAY` section of the INI file the following options may be set:
2753
+
In the `CALCULATOR` section of the preferences file the following options may be set:
2754
2754
2755
-
* `CALCULATOR_CONST_VALUES` - a comma-delimited list of common values you might enter, that will appear on a dedicated row of buttons at the bottom of the calculator. e.g. setting to `0.100,-0.100` would provide two buttons for +0.100 and -0.100 which are commonly used when edge-finding on inch mills. Up to six (6) values may be entered, beyond that the list will be truncated. Values must be valid floating point or integer.
2756
-
* `CALCULATOR_ON_SHOW` - optionally set to `CLEAR_ALL` to issue a "Clear All" each time the calculator is shown. This will clear any previously entered values from the last time the calculator was used and open with the display value set to `0`
2755
+
* `constValuesList` - A comma-delimited list of common values you might enter, that will appear on a dedicated row of buttons at the bottom of the calculator. e.g. setting to `0.100, -0.100` would provide two buttons for +0.100 and -0.100 which are commonly used when edge-finding on inch mills. Up to six (6) values may be entered, beyond that the list will be truncated. Values must be valid floating point or integer.
2756
+
* `onShowBehavior` - A list of optional behaviors that will be triggered when the calculator dialog is shown. Each option must be separated by a comma.
2757
+
- `CLEAR_ALL` to issue a *Clear All* each time the calculator is shown. This will clear any previously entered values from the last time the calculator was used and open with the display value set to `0`
2758
+
- `FORCE_FOCUS` will force the focus to the calculator input field when the widget is shown. This will allow a physical keyboard to provide input to the widget properly without additional clicks. Also, it has the side-effect of selecting the current value, such that typing from a physical keyboard will replace the existing value unless the text selection is changed.
2759
+
* `acceptOnReturnKey` - If set to `True`, the calculator will accept the current value and close the dialog when the return key is pressed. If set to `False`, the return key will be ignored and the *Apply* button must be clicked.
0 commit comments