/[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 751 by jonathan, Fri Apr 25 14:23:19 2003 UTC revision 760 by jonathan, Tue Apr 29 09:01:52 2003 UTC
# Line 151  class ProjFrame(NonModalDialog): Line 151  class ProjFrame(NonModalDialog):
151          newproj = self.__GetProjection()          newproj = self.__GetProjection()
152    
153          if newproj is not None:          if newproj is not None:
154              proj.SetProjection(newproj)              projfile.Replace(proj, newproj)
155              try:              try:
156                  WriteProjFile(projfile)                  WriteProjFile(projfile)
157              except IOError, (errno, errstr):              except IOError, (errno, errstr):
158                  self.__ShowError(projfile.GetFilename(), errstr)                  self.__ShowError(projfile.GetFilename(), errstr)
159                self.availprojs.SetClientData([newproj, projfile])
160    
161      def _OnAddToList(self, event):      def _OnAddToList(self, event):
162    
# Line 497  class ProjFrame(NonModalDialog): Line 498  class ProjFrame(NonModalDialog):
498    
499      def __set_properties(self):      def __set_properties(self):
500    
501          self.availprojs.SetSelection(0)          #self.availprojs.SetSelection(0)
502          self.projchoice.SetSelection(0)          self.projchoice.SetSelection(0)
503    
504          self.__FillAvailList(selectCurrent = True)          self.__FillAvailList(selectCurrent = True)

Legend:
Removed from v.751  
changed lines
  Added in v.760

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26