c# - IronPython 'type' object has no attribute 'NewMode' -


I have enhanced error with IronPython with my confusing error with the C # application.

The following code-genders:

  self.Mask.Control.Mode = WindowState.NewMode  

Throw this error:

'type'

name: NewDocument

exception: 'type' object is not a property object 'attribute' NewMode '

My exception is 'Neemode'

StackTrace: BI IronPathon.Runtime Binding.metiteType.footgatebinderhallper Ararbinder Target (codecontest references, objects, objects and results) BI Iron Pethon Reintime Do Taipktaip Getbejkrn Dilelegetsanukrmit, CodeContext reference) B IronPython.Runtime.Types.SystemTypeGet.Target (CallSite site, the object itself, CodeContext reference) B Microsoft.Scripting.Interpreter.DynamicInstruction 3.Run (InterpretedFrame frame) B Microsoft.Scripting.Interpreter.Interprete r.Run (InterpretedFrame frame) B Microsoft.Scripting.Interpreter.LightLambda.Run3 [T0, T1, T2, Tret] (T0 arg0, T-1 ARG1, T 2 ARG2) B IronPython.Runtime (CallSite Site, CodeContext Reference, Object Function, T0, Arg0, T1 ARG1) B. IronPython.Runtime.Method.MethodBinding 1.SelfTarget (CallSite Site, CodeContext Reference, Object Goal, T0 arg0) b Microsoft.Scripting.Interpreter.Dyna micInstruction 4.Run (InterpretedFrame frame) B Microsoft.Scripting.Interpreter.Interpreter.Run (InterpretedFrame frame) B Microsoft.Scripting.Interpreter.LightLambda.Run4 [T0, T1, T2, T3, Tret] (T0 arg0 , T-1 ARG1, T 2 aRG2, T3 arg3) B IronPython.Runtime.FunctionCaller`3.Call3 (CallSite site, CodeContext context, object function, T0 arg0, T-1 ARG1, T 2 aRG2) B CallSite.Target (off, CallSite, Object, Object, Object) B. System.Dynamic.UpdateDelegates.UpdateAndExecute3 [T0, T1, T2, Tret] (CallSite Site, T0 arg0, T1 ARG1, T2 Arg2) B CallSite.Target (Off, CallSite, object, object, object) B System.Dynamic.UpdateDelegates.UpdateAndExecute3 [T0, T1, T2, Tret] (CallSite site, T0 arg0, T-1 ARG1, T 2 ARG2) B lambda_method (off, DynamicOperations, CallS iteBinder, Object [] object) B Microsoft.Scripting.Runtime.DynamicOperations.InvokeMember (Object obj, String MemberName, Boolean ignoreCase, Object [] parameters) B Microsoft.Scripting.Hosting.ObjectOperations.InvokeMember (object obj

, that is the problem, string memberName, object [] parameter) B ESS.MS.Framework.Script.IronPythonScript.CallFunction (object class, string method, object [] argument) I reproduce the error Can not do this, some time it happens immediately and after some time it will be after one hour of using my program Land.

Perhaps someone has an idea.

(I am using .Net 4.0 and IronPython 2.7.4)

Thanks!


Comments