コード例 #1
0
 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()
コード例 #2
0
 def OnLinkClicked(self, link):
     file = urllib.urlretrieve(self.baseurl + link.GetHref())[0]
     xputil.Process(self, (config.xpreplay, file)).run()
コード例 #3
0
 def onBlock(self, evt):
     xputil.Process(self, (config.mapedit, )).run()
コード例 #4
0
 def onPoly(self, evt):
     xputil.Process(self, (config.javaws, config.jxpmap_url)).run()