code: def enter_position(self):
          '''enter new position'''
          state = self.state
          dlg = wx.TextEntryDialog(self, 'Enter new position', 'Position')
          dlg.SetValue("%f %f" % (state.lat, state.lon))
          if dlg.ShowModal() == wx.ID_OK:
              latlon = dlg.GetValue().split()
              dlg.Destroy()
              state.lat = float(latlon[0])
              state.lon = float(latlon[1])
              self.re_center(state.width/2,state.height/2, state.lat, state.lon)
              self.redraw_map(f enter_position(self):
          '''enter new position'''
          state = self.state
          dlg = wx.TextEntryDialog(self, 'Enter new position', 'Position')
          dlg.SetValue("%f %f" % (state.lat, state.lon))
          if dlg.ShowModal() == wx.ID_OK:
              latlon = dlg.GetValue().split()
              dlg.Destroy()
              state.lat = float(latlon[0])
              state.lon = float(latlon[1])
              self.re_center(state.width/2,state.height/2, state.lat, state.lon)
              self.redraw_map()
docs: enter new position