util.rtValuesDialog module¶
RTValueDialog: a dialog of sliders for adjusting a running program’s parameters (each described by a Param) as it runs. (It uses matplotlib for its scales.)
Created on Nov 28, 2025
Code author: Rob Kremer <robkremer@me.com>
- class util.rtValuesDialog.Param(default: T, min: T, max: T, help: str = '', log: bool = False)¶
Bases:
GenericClass used by the WorkerProcess objects to describe each parameter that can be modified at run time. min, max, help, and log are used primarily in conjuction with the RTValuesDialog dialog to implement an interface in the main process to allow a user to control these parameters in real time.
- default: T¶
- min: T¶
- max: T¶
- help: str = ''¶
- log: bool = False¶
- __init__(default: T, min: T, max: T, help: str = '', log: bool = False) None¶
- class util.rtValuesDialog.SliderInfo(slider: Scale, typ: Type, log: bool)¶
Bases:
objectA slider in an RTValueDialog, with its value’s type and whether its scale is logarithmic.
- slider: Scale¶
- typ: Type¶
- log: bool¶
- __init__(slider: Scale, typ: Type, log: bool) None¶
- class util.rtValuesDialog.RTValueDialog(parent, title='Attribute Editor', disabled=False)¶
Bases:
ToplevelA dialog of sliders, one per Param, for adjusting a running program’s parameters.
- COL_NAME = 0¶
- COL_VALUE = 1¶
- COL_VAL_DISP = 2¶
- COL_DEF = 3¶
- __init__(parent, title='Attribute Editor', disabled=False)¶
- Parameters:
parent
title (str)
disabled (bool)
- pairs: dict[str, SliderInfo]¶
- show()¶
- on_dismiss()¶
- makeEntries(entries: dict[str, Param])¶
Convenience method to construct entries from a simple dictionary of entries.
- Parameters:
entries (dict[str, Param])
- appendSlider(name: str, typ: Type, value: Any, default: Any, minValue: Any, maxValue: Any, fun: Callable[[str, Any], Any], helpText: str = '', logScale: bool = False)¶
- Parameters:
name (str)
typ (Type)
value (Any)
default (Any)
minValue (Any)
maxValue (Any)
fun (Callable[[str, Any], Any])
helpText (str)
logScale (bool)
- sliderCallbackHandler(_, fun: Callable, name: str, ctl: Scale, disp: Label, typ: Type, log: bool)¶
- Parameters:
_
fun (Callable)
name (str)
ctl (ttk.Scale)
disp (ttk.Label)
typ (Type)
log (bool)
- __setitem__(key: str, value: Any) None¶
- Parameters:
key (str)
value (Any)
- __getitem__(key: str)¶
- Parameters:
key (str)
- Returns:
- Return type: