QGIS/tests/testdata/qgis_local_server/layer_attribute_form.py
Denis Rouzaud e03b8abc1a fix test
2019-10-02 15:53:15 +02:00

8 lines
206 B
Python

from qgis.PyQt.QtWidgets import QLabel
def formOpen(dialog, layer, feature):
label = dialog.findChild(QLabel, 'label')
assert(label.text() == 'Swimming Monkey')
label.setText('Flying Monkey')