[wxPython-dev] How to enable pycrust/pyshell when a modal dialog popup?

patrick zhao 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?

Not really. It's a modal dialog and so by definition other top level windows in the application are not accessible. You could make it a window-modal dialog so it will only be modal with respect to its parent window and other TLWs are still accessible, but that might have other impacts on your UI that you don't want. Sometimes, depending on the context and the platform, opening PyCrust in a new frame after the modal dialog is shown will allow it to be interacted with while the dialog is active, however if you already have an active PyCrust then that will seem a bit strange to the user.

···

--
Robin Dunn
Software Craftsman