/[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 123 by bh, Mon Apr 29 18:05:04 2002 UTC revision 130 by bh, Fri May 3 14:50:18 2002 UTC
# Line 262  class MainWindow(wxFrame): Line 262  class MainWindow(wxFrame):
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()
# Line 274  class MainWindow(wxFrame): Line 274  class MainWindow(wxFrame):
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()

Legend:
Removed from v.123  
changed lines
  Added in v.130

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26