Can you provide a little more code? And more info where exactly it is called (in the startup.py or in some form init code?
Is 'dialog' available in the code part in which you try to close it? Regards, Richard Duivenvoorde On 12/20/22 09:24, PIERRE Sylvain via QGIS-Developer wrote:
Hi all, I can not achieve closing a form in init pyqgis fonction. I try : dialog.close() But form stay without any widgets I try dialog.parent().close() Does nothing dialog.parent().reject() Qgis crash Any hints ? Thanks ** Sylvain PIERRE** Chef de projet système d’information Direction des Systèmes d’Information et du Développement Numérique Service Projets et Ingénierie Numérique *Collectivité européenne d’Alsace* Tél : 03 88 76 68 88 sylvain.pie...@alsace.eu <mailto:sylvain.pie...@alsace.eu> www.alsace.eu <http://www.alsace.eu> facebook <http://www.facebook.com/toutelalsace>twitter <http://www.twitter.com/toutelalsace>insta <http://www.instagram.com/toutelalsace> _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer