Re: [Python.NET] Runtime.Py_Main from within a Windows application

2018-01-16 Thread Denis Akhiyarov
Can you post a code sample? You need to set the STA threading like in this demo: https://github.com/pythonnet/pythonnet/blob/master/demo/DynamicGrid.py On Tue, Jan 16, 2018, 1:35 PM Phat Loc wrote: > Hello, > > Is it possible to create a python repl from within a Windows application. > I know i

[Python.NET] Runtime.Py_Main from within a Windows application

2018-01-16 Thread Phat Loc
Hello, Is it possible to create a python repl from within a Windows application. I know it is possible from a Windows console application. However everytime I run Runtime.Py_Main from within a WPF app it just exits. Any suggestions on how to get an interactive version working or troubleshoot why i