Tried using the above. However, it does not block so the window immediately disappears.
I confirmed that a window is actually created by blocking the UI via wx.Sleep(5). Of course, it disappears after the block. I tried a local event loop like this:
app = GetApp()
eventLoop = GUIEventLoop()
ea = EventLoopActivator(eventLoop)
while eventLoop.Pending():
eventLoop.Dispatch()
app.ProcessIdle()
del ea
But I cannot find any examples on how to terminate this event loop and restore the original. The documentation hints that Dialog.ShowModal() does this but cannot find an example.
Help?