mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 16:56:37 +00:00
MiRCARTCanvasInterface.py:canvasSave(): fix call parameters.
This commit is contained in:
parent
55b88412c9
commit
0e8de3b4dd
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user