def setVal(self, name, val, typ='str'): # set value typ=typ.upper() if typ=='DW': typ='DWL' typ=rTyp[typ] reg.SetValueEx(self.wrk, name, 0, typ, val)