Re: [Python.NET] Runtime.Py_Main from within a Windows application
Denis Akhiyarov <[email protected]> Wed, 17 Jan 2018 03:59:07 +0000
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CALxxJLTLN4kxG7FyAWp9_yu9A+v3+FXn_XbqZ0ySohG-+GhV+Q@mail.gmail.com> |
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 <[email protected]> wrote: > 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 > it Runtime.Py_Main just exits with code 0? > > Thanks, > > Phat > _________________________________________________ > Python.NET mailing list - [email protected] > https://mail.python.org/mailman/listinfo/pythondotnet > _________________________________________________ Python.NET mailing list - [email protected] https://mail.python.org/mailman/listinfo/pythondotnet