262 |
def OpenSession(self): |
def OpenSession(self): |
263 |
self.save_modified_session() |
self.save_modified_session() |
264 |
dlg = wxFileDialog(self, "Select a session file", ".", "", |
dlg = wxFileDialog(self, "Select a session file", ".", "", |
265 |
"*.session", wxOPEN) |
"*.thuban", wxOPEN) |
266 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
267 |
main.app.OpenSession(dlg.GetPath()) |
main.app.OpenSession(dlg.GetPath()) |
268 |
dlg.Destroy() |
dlg.Destroy() |
274 |
|
|
275 |
def SaveSessionAs(self): |
def SaveSessionAs(self): |
276 |
dlg = wxFileDialog(self, "Enter a filename for session", ".", "", |
dlg = wxFileDialog(self, "Enter a filename for session", ".", "", |
277 |
"*.session", wxOPEN) |
"*.thuban", wxOPEN) |
278 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
279 |
main.app.session.SetFilename(dlg.GetPath()) |
main.app.session.SetFilename(dlg.GetPath()) |
280 |
main.app.SaveSession() |
main.app.SaveSession() |