/[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 487 by jonathan, Fri Mar 7 18:21:03 2003 UTC revision 517 by jonathan, Tue Mar 11 17:28:39 2003 UTC
# Line 12  The main window Line 12  The main window
12    
13  __version__ = "$Revision$"  __version__ = "$Revision$"
14    
15    __ThubanVersion__ = "0.2" #"$THUBAN_0_2$"
16    #__BuildDate__ = "$Date$"
17    
18  import os  import os
19    
20  from wxPython.wx import *  from wxPython.wx import *
# Line 299  class MainWindow(wxFrame): Line 302  class MainWindow(wxFrame):
302      def prepare_new_session(self):      def prepare_new_session(self):
303          for d in self.dialogs.values():          for d in self.dialogs.values():
304              if not isinstance(d, tree.SessionTreeView):              if not isinstance(d, tree.SessionTreeView):
305                  d.Shutdown()                  d.Close()
306    
307      def NewSession(self):      def NewSession(self):
308          self.save_modified_session()          self.save_modified_session()
# Line 355  class MainWindow(wxFrame): Line 358  class MainWindow(wxFrame):
358          if dialog is None:          if dialog is None:
359              dialog = tree.SessionTreeView(self, self.application, name)              dialog = tree.SessionTreeView(self, self.application, name)
360              self.add_dialog(name, dialog)              self.add_dialog(name, dialog)
361              dialog.Show(true)              dialog.Show(True)
362          else:          else:
363              # FIXME: bring dialog to front here              # FIXME: bring dialog to front here
364              pass              pass
365    
366    
367      def About(self):      def About(self):
368          self.RunMessageBox(_("About"),          self.RunMessageBox(_("About"),
369                             _("Thuban is a program for\n"                             _("Thuban v%s\n"
370                                #"Build Date: %s\n"
371                                "\n"
372                                "Thuban is a program for\n"
373                              "exploring geographic data.\n"                              "exploring geographic data.\n"
374                              "Copyright (C) 2001-2003 Intevation GmbH.\n"                              "Copyright (C) 2001-2003 Intevation GmbH.\n"
375                              "Thuban is licensed under the GPL"),                              "Thuban is licensed under the GNU GPL"
376                               % __ThubanVersion__), #__BuildDate__)),
377                             wxOK | wxICON_INFORMATION)                             wxOK | wxICON_INFORMATION)
378    
379      def AddLayer(self):      def AddLayer(self):

Legend:
Removed from v.487  
changed lines
  Added in v.517

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26