tools.UI_confUnits module¶
Dialog to define the units used in the projects. Allows you to select the preferred unit for each of the magnitudes used in the program. The main measurement systems (SI, british, AltSI, Metric, CGS) that can be directly selected also have predefined. Also allow to save and then load personalized units profiles. That profiles are saved in unitrc file in the main program config folder.
The module include all related prefered units functionality:
UI_confUnits_widget: Units configuration widget, to use in whatever need, dialog, wizard…Dialog: Standalone dialog
API reference¶
- class tools.UI_confUnits.UI_confUnits_widget(config=None, parent=None)[source]¶
Bases:
QWidgetUnits widget, to use in whatever need, dialog, wizard…
Methods
default(config)Default configuration
load([unitset])Load unit set, opcional set parameter can be any of predefined: si, altsi, metric, cgs, english
nameChanged(name)Update state of boton Guardar
save()Save units profile to a file
Update custom units profile list
value(config)Function to wizard result
- __init__(config=None, parent=None)[source]¶
Constructor, opcional config paramater with project config