/[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 316 by bh, Thu Sep 12 18:46:01 2002 UTC revision 351 by frank, Wed Nov 6 14:46:33 2002 UTC
# Line 251  class MainWindow(wxFrame): Line 251  class MainWindow(wxFrame):
251              text = "(%10.10g, %10.10g)" % pos              text = "(%10.10g, %10.10g)" % pos
252          else:          else:
253              text = ""              text = ""
254            self.set_position_text(text)
255    
256        def set_position_text(self, text):
257            """Set the statusbar text showing the current position.
258    
259            By default the text is shown in field 0 of the status bar.
260            Override this method in derived classes to put it into a
261            different field of the statusbar.
262            """
263          self.SetStatusText(text)          self.SetStatusText(text)
264    
265      def save_modified_session(self, can_veto = 1):      def save_modified_session(self, can_veto = 1):
# Line 337  class MainWindow(wxFrame): Line 346  class MainWindow(wxFrame):
346          self.RunMessageBox("About",          self.RunMessageBox("About",
347                             ("Thuban is a program for\n"                             ("Thuban is a program for\n"
348                              "exploring geographic data.\n"                              "exploring geographic data.\n"
349                              "Copyright (C) 2001 Intevation GmbH.\n"                              "Copyright (C) 2001, 2002 Intevation GmbH.\n"
350                              "Thuban is licensed under the GPL"),                              "Thuban is licensed under the GPL"),
351                             wxOK | wxICON_INFORMATION)                             wxOK | wxICON_INFORMATION)
352    
# Line 682  main_menu = Menu("<main>", "<main>", Line 691  main_menu = Menu("<main>", "<main>",
691  # the main toolbar  # the main toolbar
692    
693  main_toolbar = Menu("<toolbar>", "<toolbar>",  main_toolbar = Menu("<toolbar>", "<toolbar>",
694                      ["map_zoom_in_tool", "map_zoom_out_tool", "map_pan_tool",                      ["map_zoom_in_tool", "map_zoom_out_tool", "map_pan_tool",
695                       "map_identify_tool", "map_label_tool", "map_full_extent"])                       "map_full_extent", None,
696                         "map_identify_tool", "map_label_tool"])

Legend:
Removed from v.316  
changed lines
  Added in v.351

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26