You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use python child of .NET class in python grandchild.
What commands did you run to trigger this issue? If you can provide a Minimal, Complete, and Verifiable example
this will help us understand the issue.
Following pure python code
Error (2): during construction of PythonGroupBoxDerived the init() method was not called at all !!!
Important: this issue has nothing to do with issue #503: if I undo that fix than constructors get called twice, but errors described here persist.
The text was updated successfully, but these errors were encountered:
testrunner123
changed the title
Python granchild of .NET class is not created correctly if "__namespace__" attribute is set
Python grandchild of .NET class is not created correctly if "__namespace__" attribute is set
Sep 15, 2017
However, without explicitly redeclared __init__ in the PythonGroupBoxDerived base constructor is not called, for which I opened a separate issue: #1945
Environment
Details
I am trying to use python child of .NET class in python grandchild.
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Following pure python code
works like expected and prints:
Consider Python classes constructed with pythonnet:
works fine and prints:
Now the same with "namespace":
The output is:
Error (1), because MyInit Method didn't get overloaded !!!
One more try:
Output gets really weird:
Error (2): during construction of PythonGroupBoxDerived the init() method was not called at all !!!
Important: this issue has nothing to do with issue #503: if I undo that fix than constructors get called twice, but errors described here persist.
The text was updated successfully, but these errors were encountered: