[Python.NET] Re: Is it possible to check if a .NET class is a subclass of another .NET class

2020-05-20 Thread robert . hoelzl
I am sorry! isinstance() and issubclass() are both working fine! (I tested isinstance(StackPanel, Panel) instead of isinstance(StackPanel(), Panel) ___ PythonNet mailing list -- [email protected] To unsubscribe send an email to pythonnet-le...@python.

[Python.NET] Is it possible to check if a .NET class is a subclass of another .NET class

2020-05-19 Thread robert . hoelzl
In python I can check the inheritance via isinstance() (and issubclass()). These methods do not work on .NET classes. Are there alternative methods which are doing the job for .NET ___ PythonNet mailing list -- [email protected] To unsubscribe send an

[Python.NET] Re: How to run in STA without spawning an extra thread

2020-05-18 Thread robert . hoelzl
Ah I can answer the questions myself: Run the following sequence BEFORE "import clr": import ctypes ctypes.windll.ole32.CoInitialize(None) ___ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] http

[Python.NET] Re: How to run in STA without spawning an extra thread

2020-05-18 Thread robert . hoelzl
Ah I can answer the questions myself: Run the following sequence BEFORE "import clr": import ctypes ctypes.windll.ole32.CoInitialize(None) ___ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] http

[Python.NET] Re: How to run in STA without spawning an extra thread

2020-05-18 Thread robert . hoelzl
Ah I can answer the questions myself: Run the following sequence BEFORE "import clr": import ctypes ctypes.windll.ole32.CoInitialize(None) ___ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] http

[Python.NET] How to run in STA without spawning an extra thread

2020-05-18 Thread robert . hoelzl
I want to create a WPF app, which requires a STA thread. Unfortunately the main-thread of python.exe runs in MTA and thus cannot be utilitized. I had to spwan an extra thread, But this makes my IDE's (PyCharm) debugger not work any more (does not stop on breakpoints). I downloaded the Python.NET