-Message d'origine-
De : QGIS-Developer De la part de
Richard Duivenvoorde via QGIS-Developer
Envoyé : mardi 20 décembre 2022 09:44
À : qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] Pyqgis Close init form
Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
•
per@lists.osgeo.org
Objet : Re: [QGIS-Developer] Pyqgis Close init form
Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de
cliquer sur tout lien ou pièce jointe.
Apprendre à reconnaîtr
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,
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