7
Tôi làm cách nào để sử dụng mã bên dưới để người dùng duyệt tìm tệp png hoặc jpeg? Tôi đã làm đúng không?Cách sử dụng nhiều ký tự đại diện trong Hộp thoại Tệp Python
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
thanks for the info !!!!! NHIỀU ĐÁNH GIÁ CAO! – user715578