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

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

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

revision 1853 by bh, Tue Oct 21 14:17:24 2003 UTC revision 1854 by bh, Wed Oct 22 09:38:36 2003 UTC
# Line 73  class ProjFrame(NonModalNonParentDialog) Line 73  class ProjFrame(NonModalNonParentDialog)
73          self.originalProjection = self.receiver.GetProjection()          self.originalProjection = self.receiver.GetProjection()
74    
75          self.projection_list.SelectProjection(self.originalProjection)          self.projection_list.SelectProjection(self.originalProjection)
         self.button_ok.SetFocus()  
76          self.projection_list.SetFocus()          self.projection_list.SetFocus()
77    
78      def build_dialog(self):      def build_dialog(self):
# Line 209  class ProjFrame(NonModalNonParentDialog) Line 208  class ProjFrame(NonModalNonParentDialog)
208      def OnClose(self, event):      def OnClose(self, event):
209          self.projection_list.Unsubscribe(PROJ_SELECTION_CHANGED,          self.projection_list.Unsubscribe(PROJ_SELECTION_CHANGED,
210                                           self.proj_selection_changed)                                           self.proj_selection_changed)
211            # Destroy the projection list explicitly so that it properly
212            # unsubscribes everything. It would be cleaner if the projection
213            # could do this by itself but wx doesn't always send destroy
214            # events for non-top-level widgets
215            self.projection_list.Destroy()
216          NonModalNonParentDialog.OnClose(self, event)          NonModalNonParentDialog.OnClose(self, event)
217    
218      def OnApply(self, event):      def OnApply(self, event):

Legend:
Removed from v.1853  
changed lines
  Added in v.1854

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26