MCPcopy Create free account
hub / github.com/Image-Py/imagepy / para_changed

Method para_changed

imagepy/ui/panelconfig.py:95–106  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.80

Calls 3

para_checkMethod · 0.95
GetValueMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected