From 9dd73c2e3843f15dfe8100dbac66ac53f5e4640a Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Tue, 27 Oct 2020 23:34:25 +0100 Subject: [PATCH] wxPython4 fix. --- gui/Gui/Attackwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/Gui/Attackwindow.py b/gui/Gui/Attackwindow.py index c0d391d..0336caa 100644 --- a/gui/Gui/Attackwindow.py +++ b/gui/Gui/Attackwindow.py @@ -198,7 +198,7 @@ class AttackDisplay(wx.ScrolledWindow): (p,r,l) = self.win.claim.triplet() prefix = "pattern-%s_%s_%s-%s" % (p,r,l,self.attack.id) suggested = "%s.%s" % (prefix,ext) - res = self.askUserForFilename(style=wx.SAVE, wildcard="*.%s" % (ext), defaultFile = "%s" % (suggested)) + res = self.askUserForFilename(style=wx.FD_SAVE, wildcard="*.%s" % (ext), defaultFile = "%s" % (suggested)) return res def exportImage(self, type,ext=None):