Skip to content

Commit cf4693e

Browse files
committed
Changed the toolip with the new information
1 parent 322496a commit cf4693e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ui/qgsfieldspropertiesbase.ui

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,21 @@ MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.<
8686
<widget class="QLineEdit" name="leEditFormInit">
8787
<property name="toolTip">
8888
<string>QGIS forms can have a Python function that is called when the form is opened.
89-
Use this function to add extra logic to your forms.
89+
Use this function to add extra logic to your forms. You can either provide the python
90+
code directly in this dialog or run the code from an external file (that must live on
91+
PYTHONPATH, .qgis/python, or inside the project folder).
9092

9193
An example is (in module MyForms.py):
9294

9395
def open(dialog, layer, feature):
9496
geom = feature.geometry()
9597
control = dialog.findChild(QWidget,&quot;MyLineEdit&quot;)
9698

97-
Reference in Python Init Function like so: MyForms.open
99+
Reference in Python Init Function like so: &quot;MyForms.open&quot; or just &quot;open&quot; if provided
100+
directly in this dialog.
98101

99-
MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.</string>
102+
103+
</string>
100104
</property>
101105
</widget>
102106
</item>

0 commit comments

Comments
 (0)