如何在Python文件对话框中使用多个通配符
我该怎么用下面的代码让用户选择png或jpeg格式的文件呢?我这样做对吗?
wildcard = "pictures (*.jpeg/*.png)|*.jpeg/*.png"
dlg = wx.FileDialog(self, message="Select your picture file",defaultDir=os.getcwd(),defaultFile="*.jpeg/*.png", wildcard=wildcard, style=wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
picfile = dlg.GetFilename()
print picfile