Skip to content

Commit

Permalink
Changed the toolip with the new information
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 5, 2015
1 parent 322496a commit cf4693e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ui/qgsfieldspropertiesbase.ui
Expand Up @@ -86,17 +86,21 @@ MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.<
<widget class="QLineEdit" name="leEditFormInit">
<property name="toolTip">
<string>QGIS forms can have a Python function that is called when the form is opened.
Use this function to add extra logic to your forms.
Use this function to add extra logic to your forms. You can either provide the python
code directly in this dialog or run the code from an external file (that must live on
PYTHONPATH, .qgis/python, or inside the project folder).

An example is (in module MyForms.py):

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

Reference in Python Init Function like so: MyForms.open
Reference in Python Init Function like so: &quot;MyForms.open&quot; or just &quot;open&quot; if provided
directly in this dialog.

MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.</string>

</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit cf4693e

Please sign in to comment.