QGIS/python/gui/auto_additions/qgswidgetwrapper.py
Nyall Dawson 3f481b568e Record header subfolders as __group__ attribute in PyQGIS classes
This will allow us to logically create subgroups for PyQGIS modules
in the API reference guide
2024-08-17 20:13:12 +10:00

23 lines
1.4 KiB
Python

# The following has been generated automatically from src/gui/editorwidgets/core/qgswidgetwrapper.h
# monkey patching scoped based enum
QgsWidgetWrapper.RootPath = QgsWidgetWrapper.Property.RootPath
QgsWidgetWrapper.RootPath.is_monkey_patched = True
QgsWidgetWrapper.RootPath.__doc__ = "Root path for external resource"
QgsWidgetWrapper.DocumentViewerContent = QgsWidgetWrapper.Property.DocumentViewerContent
QgsWidgetWrapper.DocumentViewerContent.is_monkey_patched = True
QgsWidgetWrapper.DocumentViewerContent.__doc__ = "Document type for external resource"
QgsWidgetWrapper.StorageUrl = QgsWidgetWrapper.Property.StorageUrl
QgsWidgetWrapper.StorageUrl.is_monkey_patched = True
QgsWidgetWrapper.StorageUrl.__doc__ = "Storage URL for external resource"
QgsWidgetWrapper.Property.__doc__ = "Data defined properties for different editor widgets.\n\n" + '* ``RootPath``: ' + QgsWidgetWrapper.Property.RootPath.__doc__ + '\n' + '* ``DocumentViewerContent``: ' + QgsWidgetWrapper.Property.DocumentViewerContent.__doc__ + '\n' + '* ``StorageUrl``: ' + QgsWidgetWrapper.Property.StorageUrl.__doc__
# --
try:
QgsWidgetWrapper.__attribute_docs__ = {'contextChanged': 'Signal when :py:class:`QgsAttributeEditorContext` mContext changed\n\n.. versionadded:: 3.4\n'}
except NameError:
pass
QgsWidgetWrapper.fromWidget = staticmethod(QgsWidgetWrapper.fromWidget)
try:
QgsWidgetWrapper.__group__ = ['editorwidgets', 'core']
except NameError:
pass