mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-23 07:36:37 +00:00
MiRCARTCanvasInterface.py: prompt to save changes on exit given non-None canvasPathName.
This commit is contained in:
parent
321ec8ffd9
commit
b0794ccaf9
@ -110,6 +110,14 @@ class MiRCARTCanvasInterface():
|
|||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasExit(self, event): XXX
|
# {{{ canvasExit(self, event): XXX
|
||||||
def canvasExit(self, event):
|
def canvasExit(self, event):
|
||||||
|
if self.canvasPathName != None:
|
||||||
|
saveChanges = self._dialogSaveChanges()
|
||||||
|
if saveChanges == wx.ID_CANCEL:
|
||||||
|
return
|
||||||
|
elif saveChanges == wx.ID_NO:
|
||||||
|
pass
|
||||||
|
elif saveChanges == wx.ID_YES:
|
||||||
|
self.canvasSave()
|
||||||
self.parentFrame.Close(True)
|
self.parentFrame.Close(True)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasExportAsPng(self, event): XXX
|
# {{{ canvasExportAsPng(self, event): XXX
|
||||||
|
Loading…
Reference in New Issue
Block a user