这是我当前的代码:
with wx.FileDialog(self, "Save QR code image as:", wildcard="PNG (*.png)|*.png|JPEG (*.jpg)|*.jpg", style=wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT) as fileDialog:
if fileDialog.ShowModal() == wx.ID_CANCEL:
return
path = fileDialog.GetPath()