Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. if attribute("status") = "closed":
  2. remove form element (attribute("status"))
  3.  
  4. from qgis.PyQt.QtWidgets import QWidget
  5.  
  6. def my_form_open(dialog, layer, feature):
  7.  
  8. status = dialog.findChild(QLabel,"status")
  9. removeChild(status)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement