更新时间:2023-02-08 09:29:44
您使用了错误的对话框类型.使用 FileDialog 代替:
You're using the wrong dialog type. Use FileDialog instead:
wx.FD_OVERWRITE_PROMPT
我找不到在对话框中用另存为"替换保存"的方法(它只有 wx.FD_SAVE
),但大多数人不会注意到这一点.
I couldn't find a way to replace "Save" with "Save as" in the dialog (it just has wx.FD_SAVE
) but most people won't notice that.