Questions about file dialogs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Questions about file dialogs

Noelia
Hi, I have the following questions:
1. Is there any difference between wx.FileSelector, used in the log
viewer, and FileDialog, used in the addonGui? These methods seem to be
the same and I don't find documentation about differences.
2. When a DirDialog is opened without using for instance the
PathSelection class, issues can be found if a settings dialog is opened.
Also there are issues when we open a settings dialog, for instance
pressing control+NVDA+g, while the Install add-on dialog from the
Add-ons manager is opened.
This affects also add-ons which use file dialogs.
What are the better approaches to be addressed to avoid this?
Please see this issue:
https://github.com/nvaccess/nvda/issues/3361

Thanks.

------------------------------------------------------------------------------
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Questions about file dialogs

James Scholes
Noelia wrote:
> 1. Is there any difference between wx.FileSelector, used in the log
> viewer, and FileDialog, used in the addonGui? These methods seem to be
> the same and I don't find documentation about differences.

wx.FileDialog is a dialog class.  You need to create an instance of it,
call ShowModal in order to display it, check that the user pressed OK
and then call GetPath or similar to obtain the file chosen by the user.

wx.FileSelector is a function which displays a FileDialog and provides
the selected file path as its return value or an empty string if the
user cancelled the dialog.
--
James Scholes
http://twitter.com/JamesScholes

------------------------------------------------------------------------------
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Questions about file dialogs

Noelia
Thanks.


El 01/12/2016 a las 11:10, James Scholes escribió:

> Noelia wrote:
>> 1. Is there any difference between wx.FileSelector, used in the log
>> viewer, and FileDialog, used in the addonGui? These methods seem to be
>> the same and I don't find documentation about differences.
>
> wx.FileDialog is a dialog class.  You need to create an instance of it,
> call ShowModal in order to display it, check that the user pressed OK
> and then call GetPath or similar to obtain the file chosen by the user.
>
> wx.FileSelector is a function which displays a FileDialog and provides
> the selected file path as its return value or an empty string if the
> user cancelled the dialog.
>

------------------------------------------------------------------------------
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Loading...