not sure if this is the right place for such question, but I need some help, ShowModal() causes panda3d, inside a wxDialog, to get stuck, it does not render nothing and the screen is black.
ShowModal --> Note that this function creates a temporary event loop which takes precedence over the application’s main event loop (see wxEventLoopBase) and which is destroyed when the dialog is dismissed
I think this temporary event loop that interrupts panda.
dialog = Widgets.Dialog()
# safely start modal dialog and keep Panda running
pandaTimer = wx.Timer(dialog, - 1)
dialog.Bind(wx.EVT_TIMER, onTimer, id = pandaTimer.GetId())
# keep FPS resonable, smaller value make Wx unresponsive
and I got this response:
Assertion failed: _num_busy_threads == 0 at line 865 of c:\p\p3d\panda3d-1.6.2\panda\src\event\asyncTaskChain.cxx
another attempt: I used the Show() function instead ShowModal() and I wrote a basic task that calls dialog.SetFocus() and returns task.cont, almost there but the wx.Frame continues to respond to events such as mouse clicks or menu selections or button clicks! Next step is to avoid those events while the dialog does not exit. Not sure if this is a fine solution.