Re: wx.FileDialog and scripts


Abdel
 

Hi Javi,

For me, the following three instructions entered in the Python console of NVDA work well, maybe you did not specify the parent?

import gui
fileDialog = wx.FileDialog(gui.mainFrame, message="Test", wildcard=("Text (*.txt)"), defaultDir="c:", style=wx.FD_OPEN)
fileDialog.ShowModal()

Hope this helps.

Kind regards,
Abdel.

Le 21/08/2022 à 11:42, Javi Domínguez a écrit :

Hello.


Does anyone know why I can't use a wx.FileDialog in a globalPlugin script? NVDA crashes. However, elsewhere, for example calling it from the NVDA menu it works perfectly.


Thanks


Join {nvda-addons@nvda-addons.groups.io to automatically receive all group messages.