302 |
|
|
303 |
def OpenSession(self): |
def OpenSession(self): |
304 |
self.save_modified_session() |
self.save_modified_session() |
305 |
dlg = wxFileDialog(self, _("Select a session file"), ".", "", |
dlg = wxFileDialog(self, _("Open Session"), ".", "", |
306 |
"*.thuban", wxOPEN) |
"*.thuban", wxOPEN) |
307 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
308 |
self.application.OpenSession(dlg.GetPath()) |
self.application.OpenSession(dlg.GetPath()) |
314 |
self.application.SaveSession() |
self.application.SaveSession() |
315 |
|
|
316 |
def SaveSessionAs(self): |
def SaveSessionAs(self): |
317 |
dlg = wxFileDialog(self, _("Enter a filename for session"), ".", "", |
dlg = wxFileDialog(self, _("Save Session As"), ".", "", |
318 |
"*.thuban", wxOPEN) |
"*.thuban", wxOPEN) |
319 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
320 |
self.application.session.SetFilename(dlg.GetPath()) |
self.application.session.SetFilename(dlg.GetPath()) |