Using the code:
with wx.FileDialog(self, "Select PDF files to add", self.dirname, "*.PDF", "PDF files (*.pdf)|*.pdf", wx.FD_OPEN | wx.FD_MULTIPLE | wx.FD_FILE_MUST_EXIST) as dlg:
dlg.SetWindowStyle(wx.STAY_ON_TOP)
if dlg.ShowModal() != wx.ID_OK:
return
test=dlg.GetFilenames()
The dialog opens and works except that I am unable to select more than one file. (I also tried it using the keyword format “style=…” etc., with the same result.) What am I doing wrong?
Running under PyCharm on W10. Everything (Windows, Pycharm, packages) is up-to-date.