Exemple #1
0
 def _extract_scalar(self, cell):
     var = robotapi.Variable(self._controller.datafile.variable_table, '',
                             self.GetCellValue(*cell), '')
     dlg = ScalarVariableDialog(
         self._controller.datafile_controller.variables, var)
     if dlg.ShowModal() == wx.ID_OK:
         name, value = dlg.get_value()
         comment = dlg.get_comment()
         self._execute(ExtractScalar(name, value, comment, cell))
Exemple #2
0
 def _extract_list(self, cells):
     var = robotapi.Variable(self._controller.datafile.variable_table, '',
                             [self.GetCellValue(*cell) for cell in cells],
                             '')
     dlg = ListVariableDialog(
         self._controller.datafile_controller.variables, var, self._plugin)
     if dlg.ShowModal() == wx.ID_OK:
         name, value = dlg.get_value()
         comment = dlg.get_comment()
         self._execute(ExtractList(name, value, comment, cells))