mastoron.ui¶
- class BarGraphWindow(*args: Any, **kwargs: Any)[source]¶
Bases:
pyrevit.forms.Extended form to select from a list of command options.
- Parameters
context (list[str]) – list of command options to choose from
switches (list[str]) – list of on/off switches
message (str) – window title message
config (dict) – dictionary of config dicts for options or switches
recognize_access_key (bool) – recognize ‘_’ as mark of access key
- __init__(context, xamlFilesDir, xamlSource, title, width, height, **kwargs)[source]¶
Initialize user input window.
- colorButtons()¶
Sets the background color for all buttons according to the corresponding hex value in color scheme.
- resizeButtons(paramTotals)[source]¶
Set the width of all buttons according to the total of the parameter values it represents.
- Parameters
paramTotals (dict) – {“<colorSchemeParamValue>”:”<dataParamValueTotal>”}
- classmethod show(scheme, xamlFilesDir, xamlSource, paramTotals, dataParamName, title='User Input', width=pyrevit.forms.DEFAULT_INPUTWINDOW_WIDTH, height=pyrevit.forms.DEFAULT_INPUTWINDOW_HEIGHT, **kwargs)[source]¶
Show user input window.
- Parameters
context (any) – window context element(s)
title (str) – window title
width (int) – window width
height (int) – window height
**kwargs (any) – other arguments to be passed to window
- class ColorSchemeEditor(*args: Any, **kwargs: Any)[source]¶
Bases:
pyrevit.forms.Extended form to select from a list of command options.
- Parameters
context (list[str]) – list of command options to choose from
switches (list[str]) – list of on/off switches
message (str) – window title message
config (dict) – dictionary of config dicts for options or switches
recognize_access_key (bool) – recognize ‘_’ as mark of access key
- __init__(context, xamlFilesDir, xamlSource, title, width, height, **kwargs)[source]¶
Initialize user input window.
- colorButtons()¶
Sets the background color for all buttons according to the corresponding hex value in color scheme.
- classmethod show(scheme, xamlFilesDir, xamlSource, title='User Input', width=pyrevit.forms.DEFAULT_INPUTWINDOW_WIDTH, height=pyrevit.forms.DEFAULT_INPUTWINDOW_HEIGHT, **kwargs)¶
Show user input window.
- Parameters
context (any) – window context element(s)
title (str) – window title
width (int) – window width
height (int) – window height
**kwargs (any) – other arguments to be passed to window
- class ColorSwitchWindow(*args: Any, **kwargs: Any)[source]¶
Bases:
pyrevit.forms.Extended form to select from a list of command options.
- Parameters
context (list[str]) – list of command options to choose from
switches (list[str]) – list of on/off switches
message (str) – window title message
config (dict) – dictionary of config dicts for options or switches
recognize_access_key (bool) – recognize ‘_’ as mark of access key
- __init__(context, xamlFilesDir, xamlSource, title, width, height, **kwargs)[source]¶
Initialize user input window.
- colorButtons()[source]¶
Sets the background color for all buttons according to the corresponding hex value in color scheme.
- classmethod show(scheme, xamlFilesDir, xamlSource, title='User Input', width=pyrevit.forms.DEFAULT_INPUTWINDOW_WIDTH, height=pyrevit.forms.DEFAULT_INPUTWINDOW_HEIGHT, **kwargs)[source]¶
Show user input window.
- Parameters
context (any) – window context element(s)
title (str) – window title
width (int) – window width
height (int) – window height
**kwargs (any) – other arguments to be passed to window