|
GRASS Programmer's Manual
6.4.2(2012)
|
Public Member Functions | |
| def | __init__ |
| def | GetUnitsList |
| Get list of units (their labels) | |
| def | GetUnitsKey |
| Get units key based on index. | |
| def | GetUnitsIndex |
| Get units index based on key. | |
| def gui_modules.units.BaseUnits.__init__ | ( | self | ) |
Definition at line 27 of file units.py.
References gui_modules.units.BaseUnits._units, and gui_modules.psmap_dialogs.UnitConversion._units.
| def gui_modules.units.BaseUnits.GetUnitsIndex | ( | self, | |
| type, | |||
| key | |||
| ) |
Get units index based on key.
| type | units type ('length' or 'area') |
| key | units key, e.g. 'me' for meters |
Definition at line 67 of file units.py.
References gui_modules.units.BaseUnits._units, and gui_modules.psmap_dialogs.UnitConversion._units.
| def gui_modules.units.BaseUnits.GetUnitsKey | ( | self, | |
| type, | |||
| index | |||
| ) |
Get units key based on index.
| type | units type ('length' or 'area') |
| index | units index |
Definition at line 59 of file units.py.
References gui_modules.units.BaseUnits._units, and gui_modules.psmap_dialogs.UnitConversion._units.
| def gui_modules.units.BaseUnits.GetUnitsList | ( | self, | |
| type | |||
| ) |
Get list of units (their labels)
| type | units type ('length' or 'area') |
Definition at line 41 of file units.py.
References gui_modules.units.BaseUnits._units, and gui_modules.psmap_dialogs.UnitConversion._units.