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 |
|
|
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) |