How to enable pycrust/pyshell when a modal dialog popup?

We embedded wxPython to an existing c++ wxWidgets application. And use pycrust/pyshell to input python command to the application interactively. It works fine except that when the application pop up a modal dialog, we can not do any input in pycrust/pyshell. Is there any way to solve the problem?

Thanks!

Patrick

Switch them to non-modal dialogs?

···

On Thu, Dec 26, 2013 at 11:41 PM, patrick zhao patrick1981.zhao@gmail.com wrote:

We embedded wxPython to an existing c++ wxWidgets application. And use pycrust/pyshell to input python command to the application interactively. It works fine except that when the application pop up a modal dialog, we can not do any input in pycrust/pyshell. Is there any way to solve the problem?

Thanks!

Patrick

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

We want to use wxPython to do some automatic testing on the C++ application. The original application is not supposed to be modified.

···

On Friday, December 27, 2013 1:22:04 PM UTC+8, Che M wrote:

Switch them to non-modal dialogs?

On Thu, Dec 26, 2013 at 11:41 PM, patrick zhao patrick1...@gmail.com wrote:

We embedded wxPython to an existing c++ wxWidgets application. And use pycrust/pyshell to input python command to the application interactively. It works fine except that when the application pop up a modal dialog, we can not do any input in pycrust/pyshell. Is there any way to solve the problem?

Thanks!

Patrick

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Hi,
I am not sure about possible/likely C++ specificities, but for an pure
wxpython app, this works without much effort,
the shell is just to be placed in a separate Frame

import wx.py
shell_frame = wx.Frame(parent, -1, u"Python shell")
py_shell = wx.py.shell.Shell( shell_frame , -1,)

hth
   vbr

···

2013/12/27 patrick zhao <patrick1981.zhao@gmail.com>:

We embedded wxPython to an existing c++ wxWidgets application. And use
pycrust/pyshell to input python command to the application interactively. It
works fine except that when the application pop up a modal dialog, we can
not do any input in pycrust/pyshell. Is there any way to solve the problem?

Thanks!
Patrick