WxPython saveDialog默认文件名

时间:2018-06-22 08:51:23

标签: python python-3.x wxpython wxwidgets

这是我当前的代码:

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()

如何为用户浏览时看到的保存对话框设置默认名称? Some default file name

0 个答案:

没有答案