Skip to main content
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
edited title
Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

Why are there my_form_open() Python examplesfunctions in my QGIS project file?

Source Link
Alex
  • 479
  • 1
  • 3
  • 12

Python examples in QGIS project file

I have a project open with 6 layers (MapInfo .tab format), have set the style for each layer and added labels for 1 of them. So for a simple project the .qgs file is about 2000 lines long and among other things I can't quite make sense of there are 6 (duplicate) examples of a Python function my_form_open(dialog, layer, feature) in the .qgs file (1 for every layer?). Does anyone know why they are there in the first place and then why would it write out the example 6 times...? the function doesn't have a return statement so it wouldn't work anyway