qualitron.ui¶
- class AreaHelperWindow(*args: Any, **kwargs: Any)[source]¶
Bases:
System.Windows.Area Helper Window UI.
- Parameters
Windows (obj) – Inherits Window
- __init__(xamlfile, areaHelperManager)[source]¶
Shows Area Helper window. As a non-modal window, transactions are in event manager integrated, which is used to trigger external commands.
- Parameters
xamlfile (str) – xaml file path
areaHelperManager (obj) – Area Helper Manager instance
- bakeClicked(sender, e)[source]¶
On bake clicked, raises bake event. Tracebacks must be catched to avoid application crash.
- comboLevelChanged(sender, args)[source]¶
On level combobox changed, updates area list from that level
- comboSchemeChanged(sender, args)[source]¶
On scheme combobox changed, updates level combobox and refreshed buttons.
- class ColorSwitchWindow(*args: Any, **kwargs: Any)[source]¶
Bases:
pyrevit.forms.Extended form to select from a list of command options.
- __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 buttonColors.
- classmethod show(buttonColors, context, 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
**kwargs (any) – other arguments to be passed to window
- class CompareParameterWindow(*args: Any, **kwargs: Any)[source]¶
Bases:
pyrevit.forms.Extended form to select from a list of command options. Selects elements at button click.
- colorButtons()¶
Sets the background color for all buttons according to the corresponding hex value in buttonColors.
- process_option(sender, args)[source]¶
Handle click on command option button. Closes the window and selects all elements with the value of the selected button.
- classmethod show(buttonColors, paramValuesDict, 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