/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 393 by jonathan, Mon Feb 10 15:26:54 2003 UTC revision 431 by jonathan, Mon Feb 24 18:47:21 2003 UTC
# Line 302  class MainWindow(wxFrame): Line 302  class MainWindow(wxFrame):
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())
# Line 314  class MainWindow(wxFrame): Line 314  class MainWindow(wxFrame):
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())

Legend:
Removed from v.393  
changed lines
  Added in v.431

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26