コード例 #1
0
ファイル: CodingTextCtrl.py プロジェクト: nix4/CAIRIS
 def onUrl(self,evt):
   urlValue = evt.GetString()
   codeRefs = urlValue.split(',')
   codeValue = self.theCodes[(int(codeRefs[0]),int(codeRefs[1]))]
   b = Borg() 
   codeObjt = b.dbProxy.dimensionObject(codeValue,'code') 
   dlg = CodeDialog(self,DialogClassParameters(armid.CODE_ID,'View Code'))
   dlg.load(codeObjt)
   dlg.ShowModal()
コード例 #2
0
ファイル: CodingTextCtrl.py プロジェクト: adamrbu/cairis
 def displayCode(self,fromIdx,toIdx):
   try:
     cmValue = self.theCodes[(fromIdx,toIdx)]
     b = Borg() 
     cmObjt = b.dbProxy.dimensionObject(cmValue,'code') 
     dlg = CodeDialog(self,DialogClassParameters(CODE_ID,'View Code'))
     dlg.load(cmObjt)
     dlg.ShowModal()
   except KeyError:
     return