uimaker
UI maker.
Attributes
mlogger = get_logger(__name__)
module-attribute
CONFIG_SCRIPT_TITLE_POSTFIX = '●'
module-attribute
current_ui = ribbon.get_current_ui()
module-attribute
Classes
UIMakerParams(par_ui, par_cmp, cmp_item, asm_info, create_beta=False)
UI maker parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
par_ui |
_PyRevitUI
|
Parent UI item |
required |
par_cmp |
GenericUIComponent
|
Parent UI component |
required |
cmp_item |
GenericUIComponent
|
UI component item |
required |
asm_info |
AssemblyInfo
|
Assembly info |
required |
create_beta |
bool
|
Create beta button. Defaults to False |
False
|
Source code in pyrevitlib/pyrevit/loader/uimaker.py
Attributes
parent_ui = par_ui
instance-attribute
parent_cmp = par_cmp
instance-attribute
component = cmp_item
instance-attribute
asm_info = asm_info
instance-attribute
create_beta_cmds = create_beta
instance-attribute
Functions
update_pyrevit_ui(ui_ext, ext_asm_info, create_beta=False)
Updates/Creates pyRevit ui for the extension and assembly dll address.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ui_ext |
GenericUIContainer
|
UI container. |
required |
ext_asm_info |
AssemblyInfo
|
Assembly info. |
required |
create_beta |
bool
|
Create beta ui. Defaults to False. |
False
|
Source code in pyrevitlib/pyrevit/loader/uimaker.py
sort_pyrevit_ui(ui_ext)
Sorts pyRevit UI.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ui_ext |
GenericUIContainer
|
UI container. |
required |
Source code in pyrevitlib/pyrevit/loader/uimaker.py
cleanup_pyrevit_ui()
Cleanup the pyrevit UI.
Hide all items that were not touched after a reload meaning they have been removed in extension folder structure and thus are not updated.
Source code in pyrevitlib/pyrevit/loader/uimaker.py
reflow_pyrevit_ui(direction=applocales.DEFAULT_LANG_DIR)
Set the flow direction of the tabs.