/[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 1287 by jonathan, Mon Jun 23 10:47:11 2003 UTC revision 1309 by jonathan, Thu Jun 26 17:00:44 2003 UTC
# Line 44  from menu import Menu Line 44  from menu import Menu
44  from context import Context  from context import Context
45  from command import registry, Command, ToolCommand  from command import registry, Command, ToolCommand
46  from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION  from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION
47    from about import About
48    
49  from Thuban.UI.dock import DockFrame  from Thuban.UI.dock import DockFrame
50  from Thuban.UI.join import JoinDialog  from Thuban.UI.join import JoinDialog
# Line 53  import Thuban.Model.resource Line 54  import Thuban.Model.resource
54    
55  import projdialog  import projdialog
56    
57    
58  class MainWindow(DockFrame):  class MainWindow(DockFrame):
59    
60      # Some messages that can be subscribed/unsubscribed directly through      # Some messages that can be subscribed/unsubscribed directly through
# Line 444  class MainWindow(DockFrame): Line 446  class MainWindow(DockFrame):
446          return self.get_open_dialog("session_tree") is not None          return self.get_open_dialog("session_tree") is not None
447    
448      def About(self):      def About(self):
449          self.RunMessageBox(_("About"),          dlg = About(self)
450                             _("Thuban %s\n\n"          dlg.ShowModal()
451                              #"Build Date: %s\n"          dlg.Destroy()
                             "Currently using:\n"  
                             "  %s\n"  
                             "  %s\n\n"  
                             "Thuban is a program for\n"  
                             "exploring geographic data.\n"  
                             "Copyright (C) 2001-2003 Intevation GmbH.\n"  
                             "Thuban is licensed under the GNU GPL"  
                             % (Thuban.version.longversion,  
                                "wxPython %s" % wxPython_version,  
                                "Python %d.%d.%d" % sys.version_info[:3]  
                               )),  
 #                           % __ThubanVersion__), #__BuildDate__)),  
                            wxOK | wxICON_INFORMATION)  
452    
453      def AddLayer(self):      def AddLayer(self):
454          dlg = wxFileDialog(self, _("Select a data file"), ".", "", "*.*",          dlg = wxFileDialog(self, _("Select a data file"), ".", "", "*.*",
# Line 1142  main_toolbar = Menu("<toolbar>", "<toolb Line 1131  main_toolbar = Menu("<toolbar>", "<toolb
1131                       "selected_full_extent",                       "selected_full_extent",
1132                       None,                       None,
1133                       "map_identify_tool", "map_label_tool"])                       "map_identify_tool", "map_label_tool"])
1134    

Legend:
Removed from v.1287  
changed lines
  Added in v.1309

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26