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