MiRCARTCanvasInterface.py:canvasSave(): fix call parameters.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-25 15:04:37 +01:00
parent 55b88412c9
commit 0e8de3b4dd

View File

@ -115,7 +115,7 @@ class MiRCARTCanvasInterface():
elif saveChanges == wx.ID_NO: elif saveChanges == wx.ID_NO:
pass pass
elif saveChanges == wx.ID_YES: elif saveChanges == wx.ID_YES:
self.canvasSave() self.canvasSave(event)
self.parentFrame.Close(True) self.parentFrame.Close(True)
# }}} # }}}
# {{{ canvasExportAsPng(self, event): XXX # {{{ canvasExportAsPng(self, event): XXX
@ -212,7 +212,7 @@ class MiRCARTCanvasInterface():
elif saveChanges == wx.ID_NO: elif saveChanges == wx.ID_NO:
pass pass
elif saveChanges == wx.ID_YES: elif saveChanges == wx.ID_YES:
self.canvasSave() self.canvasSave(event)
self.parentCanvas.SetCursor(wx.Cursor(wx.CURSOR_WAIT)) self.parentCanvas.SetCursor(wx.Cursor(wx.CURSOR_WAIT))
if newCanvasSize == None: if newCanvasSize == None:
newCanvasSize = list(self.parentCanvas.defaultCanvasSize) newCanvasSize = list(self.parentCanvas.defaultCanvasSize)
@ -230,7 +230,7 @@ class MiRCARTCanvasInterface():
elif saveChanges == wx.ID_NO: elif saveChanges == wx.ID_NO:
pass pass
elif saveChanges == wx.ID_YES: elif saveChanges == wx.ID_YES:
self.canvasSave() self.canvasSave(event)
with wx.FileDialog(self.parentCanvas, "Open", os.getcwd(), "", \ with wx.FileDialog(self.parentCanvas, "Open", os.getcwd(), "", \
"*.txt", wx.FD_OPEN) as dialog: "*.txt", wx.FD_OPEN) as dialog:
if dialog.ShowModal() == wx.ID_CANCEL: if dialog.ShowModal() == wx.ID_CANCEL: