Example #1
0
 def onAddException(self,evt):
   dlg = ExceptionDialog(self,self.theEnvironmentName) 
   if (dlg.ShowModal() == armid.EXCEPTION_BUTTONCOMMIT_ID):
     pos = self.GetGridCursorRow()
     table = self.GetTable()
     currentStep = table.steps[pos]
     exc = dlg.parameters() 
     currentStep.addException(exc)
Example #2
0
 def onAddException(self, evt):
     dlg = ExceptionDialog(self, self.theEnvironmentName)
     if (dlg.ShowModal() == EXCEPTION_BUTTONCOMMIT_ID):
         pos = self.GetGridCursorRow()
         table = self.GetTable()
         currentStep = table.steps[pos]
         exc = dlg.parameters()
         currentStep.addException(exc)
Example #3
0
 def onExceptionActivated(self,evt):
   self.theSelectedIdx = evt.GetIndex()
   excName = self.GetItemText(self.theSelectedIdx)
    
   exc = self.stepGrid.stepException(excName)
   dlg = ExceptionDialog(self,self.theEnvironmentName,exc[0],exc[1],exc[2],exc[3],exc[4])
   if (dlg.ShowModal() == EXCEPTION_BUTTONCOMMIT_ID):
     updExc = dlg.parameters()
     self.stepGrid.setStepException(self.theSelectedIdx,excName,updExc)
     self.SetStringItem(self.theSelectedIdx,0,updExc[0])
Example #4
0
 def onAddException(self,evt):
   dlg = ExceptionDialog(self,self.theEnvironmentName)
   if (dlg.ShowModal() == EXCEPTION_BUTTONCOMMIT_ID):
     exc = dlg.parameters()
     pos = self.stepGrid.GetGridCursorRow()
     table = self.stepGrid.GetTable()
     currentStep = table.steps[pos]
     currentStep.addException(exc)
     table.steps[pos] = currentStep
     self.InsertStringItem(0,exc[0])
Example #5
0
 def onAddException(self, evt):
     dlg = ExceptionDialog(self, self.theEnvironmentName)
     if (dlg.ShowModal() == armid.EXCEPTION_BUTTONCOMMIT_ID):
         exc = dlg.parameters()
         pos = self.stepGrid.GetGridCursorRow()
         table = self.stepGrid.GetTable()
         currentStep = table.steps[pos]
         currentStep.addException(exc)
         table.steps[pos] = currentStep
         self.InsertStringItem(0, exc[0])
Example #6
0
    def onExceptionActivated(self, evt):
        self.theSelectedIdx = evt.GetIndex()
        excName = self.GetItemText(self.theSelectedIdx)

        exc = self.stepGrid.stepException(excName)
        dlg = ExceptionDialog(self, self.theEnvironmentName, exc[0], exc[1],
                              exc[2], exc[3], exc[4])
        if (dlg.ShowModal() == EXCEPTION_BUTTONCOMMIT_ID):
            updExc = dlg.parameters()
            self.stepGrid.setStepException(self.theSelectedIdx, excName,
                                           updExc)
            self.SetStringItem(self.theSelectedIdx, 0, updExc[0])