def onXPReplay(self, evt): dlg = wx.FileDialog(None, message="Choose a recording", defaultDir=os.getcwd(), defaultFile="", wildcard="*.xpr*", style=wx.OPEN | wx.CHANGE_DIR) if dlg.ShowModal() == wx.ID_OK: xputil.Process(self, (config.xpreplay, dlg.GetPath())).run()
def OnLinkClicked(self, link): file = urllib.urlretrieve(self.baseurl + link.GetHref())[0] xputil.Process(self, (config.xpreplay, file)).run()
def onBlock(self, evt): xputil.Process(self, (config.mapedit, )).run()
def onPoly(self, evt): xputil.Process(self, (config.javaws, config.jxpmap_url)).run()