Пример #1
0
 public dynamic CallFunction(
     string function,
     List <object> arguments  = null,
     EscapeFlags escapeMethod = EscapeFlags.Quotes | EscapeFlags.StripNullItems
     )
 {
     return(CallFunction(PyFunction.ClassFunction(function), arguments, escapeMethod));
 }
Пример #2
0
 public dynamic CallAssign(
     string function,
     List <object> arguments  = null,
     EscapeFlags escapeMethod = EscapeFlags.Quotes | EscapeFlags.StripNullItems,
     PyVariable target        = null
     )
 {
     return(CallAssign(PyFunction.ClassFunction(function), arguments, escapeMethod, target));
 }
Пример #3
0
        public PyVariable NewInstance(List <object> arguments = null)
        {
            PyVariable instance = PyVariableManager.Get.NewVariable();

            List <object> args = new List <object>()
            {
                "self.bridge"
            };

            if (arguments != null)
            {
                args.AddRange(arguments);
            }

            return(instance.CallAssign(PyFunction.ClassFunction(this.ClassName), args));
        }