(self, key)
| 93 | def para_check(self, para, key):pass |
| 94 | |
| 95 | def para_changed(self, key): |
| 96 | para = self.para |
| 97 | for p in list(para.keys()): |
| 98 | if p in self.ctrl_dic: |
| 99 | para[p] = self.ctrl_dic[p].GetValue() |
| 100 | sta = sum([i is None for i in list(para.values())])==0 |
| 101 | self.btn_ok.Enable(sta) |
| 102 | if not sta: return |
| 103 | self.para_check(para, key) |
| 104 | if 'preview' not in self.ctrl_dic:return |
| 105 | if not self.ctrl_dic['preview'].GetValue():return |
| 106 | self.handle(para) |
| 107 | |
| 108 | def reset(self, para=None): |
| 109 | if para!=None:self.para = para |
no test coverage detected