Class: QgsNumericFormatGuiRegistry¶
The QgsNumericFormatGuiRegistry
is a home for widgets for
configuring QgsNumericFormat
objects.
QgsNumericFormatGuiRegistry
is not usually directly created,
but rather accessed through
QgsGui.numericFormatGuiRegistry()
.
Added in version 3.12.
Methods
Add a new configuration widget factory for customizing a numeric format with the specified id. |
|
Returns a new configuration widget for an format. |
|
Removes the configuration widget factory for customizing numeric formats with the specified id. |
- class qgis.gui.QgsNumericFormatGuiRegistry[source]¶
Bases:
object
- __init__()
Constructor. Should never be called manually, is already created by
QgsGui
.
- __init__(a0: QgsNumericFormatGuiRegistry)
- Parameters:
- addFormatConfigurationWidgetFactory(self, id: str | None, factory: QgsNumericFormatConfigurationWidgetFactory | None)[source]¶
Add a new configuration widget factory for customizing a numeric format with the specified
id
.Ownership is taken by the reigstry.
- Parameters:
id (Optional[str])
factory (Optional[QgsNumericFormatConfigurationWidgetFactory])
- formatConfigurationWidget(self, format: QgsNumericFormat | None) QgsNumericFormatWidget | None [source]¶
Returns a new configuration widget for an
format
.Returns
None
if no configuration widgets are available for the specifiedformat
.- Parameters:
format (Optional[QgsNumericFormat])
- Return type:
Optional[QgsNumericFormatWidget]