Im trying to close the window (by code) that appears right after the "add feature" tool is called. This is the window im talking:

enter image description here

This is my plugin code:

    def run(self):
    """Run method that performs all the real work"""

Everything i tried closed my QGIS program. Is what im asking possible? If so, how?

  • 1
    Uncheck Settings -> Options -> Supress attribute form pop-up after feature creation. – Germán Carrillo Oct 29 '17 at 13:33
  • Thank you. That worked :) I already had it unchecked but checking made it work. Do you know how to implement it on code so i can turn "ON" and "OFF" in the plugin? – José Gabriel Oct 29 '17 at 13:50
  • 2
    Turning "ON": QSettings().setValue( '/qgis/digitizing/disable_enter_attribute_values_dialog', True ) Turning "OFF": QSettings().setValue( '/qgis/digitizing/disable_enter_attribute_values_dialog', False ) – José Gabriel Oct 30 '17 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.