app = wx.App(0)
def handleWxEvents(task):
while app.Pending():
app.Dispatch()
return Task.cont
taskMgr.add(handleWxEvents, 'handleWxEvents')
run() # Panda handles the main loop
I received this message in console when I was using base.wxApp:
Code:
import wx
from panda3d.core import loadPrcFileData
loadPrcFileData('', "use-wx #t")
import direct.directbase.DirectStart
app = base.wxApp(0)
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
frame.Show(True)
run() # Panda handles the main loop