mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-11 00:04:09 -04:00
sip doesn't use the standard Python staticmethod type for defining static methods, which means that standard means of testing for a static method (like `isinstance(..., staticmethod)`) fail with any PyQGIS static methods. This causes issues with lint tools, which incorrectly flag calls to QGIS static methods as missing self arguments. It also breaks detection of static methods in the sphinx PyQGIS docs, so all static methods are shown as non-static. Work around this in sipify, by wrapping unambiguously static methods in staticmethod wrappers.
7 lines
1.2 KiB
Python
7 lines
1.2 KiB
Python
# The following has been generated automatically from src/gui/qgspanelwidget.h
|
|
try:
|
|
QgsPanelWidget.__attribute_docs__ = {'panelAccepted': 'Emitted when the panel is accepted by the user.\n\n:param panel: The panel widget that was accepted.\n\n.. note::\n\n This argument is normally raised with emit panelAccepted(this)\n so that callers can retrieve the widget easier in calling code.\n\n.. note::\n\n this is emitted only when this panel is accepted, and is not emitted for\n child panels. For example, if this panel opens a second stacked panel, then this panel\n will not emit panelAccepted when the second panel is accepted.\n', 'showPanel': 'Emit when you require a panel to be show in the interface.\n\n:param panel: The panel widget to show.\n\n.. note::\n\n If you are connected to this signal you should also connect\n given panels showPanel signal as they can be nested.\n', 'widgetChanged': 'Emitted when the widget state changes.\nConnect to this to pull any changes off the widget when needed.\nAs panels are non blocking "dialogs" you should listen to this signal\nto give the user feedback when something changes.\n'}
|
|
except NameError:
|
|
pass
|
|
QgsPanelWidget.findParentPanel = staticmethod(QgsPanelWidget.findParentPanel)
|