Beispiel #1
0
        public static object DefaultNewClsKW(CodeContext context, PythonType type\u00F8, [ParamDictionary] IDictionary <object, object> kwargs\u00F8, params object[] args\u00F8)
        {
            object res = DefaultNew(context, type\u00F8, args\u00F8);

            if (kwargs\u00F8.Count > 0)
            {
                foreach (KeyValuePair <object, object> kvp in (IDictionary <object, object>)kwargs\u00F8)
                {
                    PythonOps.SetAttr(context,
                                      res,
                                      kvp.Key.ToString(),
                                      kvp.Value);
                }
            }
            return(res);
        }
 public override void SetValue(object component, object value)
 {
     PythonOps.SetAttr(DefaultContext.DefaultCLS, component, _name, value);
 }