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.

UI_confUnits

The module include all related prefered units functionality:

API reference

class tools.UI_confUnits.UI_confUnits_widget(config=None, parent=None)[source]

Bases: QWidget

Units 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

updateProfileList()

Update custom units profile list

value(config)

Function to wizard result

__init__(config=None, parent=None)[source]

Constructor, opcional config paramater with project config

updateProfileList()[source]

Update custom units profile list

save()[source]

Save units profile to a file

nameChanged(name)[source]

Update state of boton Guardar

load(unitset=None)[source]

Load unit set, opcional set parameter can be any of predefined: si, altsi, metric, cgs, english

value(config)[source]

Function to wizard result

classmethod default(config)[source]

Default configuration

class tools.UI_confUnits.Dialog(config=None, parent=None)[source]

Bases: QDialog

Units configuration dialog

Methods

value(config)

Function to wizard result

__init__(config=None, parent=None)[source]
value(config)[source]

Function to wizard result