I don't see a crash, but I get 2 separate windows (the attempt to set the handle does nothing). Tested on OSX 10.5 and 10.6 with panda 1.7.2. It works properly under windows7.
Here is some simple code that shows the issue:
import direct.directbase.DirectStart
from direct.task import Task
import wx
from panda3d.core import WindowProperties
app = wx.PySimpleApp()
def handleWxEvents(task=None):
while app.Pending(): app.Dispatch()
return Task.cont
I don't see a crash, but I get 2 separate windows (the attempt to set the handle does nothing). Tested on OSX 10.5 and 10.6 with panda 1.7.2. It works properly under windows7.
Here is some simple code that shows the issue: directbase. DirectStart
import direct.
from direct.task import Task
import wx
from panda3d.core import WindowProperties
app = wx.PySimpleApp() task=None) :
def handleWxEvents(
while app.Pending(): app.Dispatch()
return Task.cont
taskMgr. add(handleWxEve nts, 'handleWxEvents')
frame = wx.Frame(None, -1, 'My wx frame') s.getDefault( ) Window( frame.GetHandle ()) tWindow( props = props)
base.windowType = 'onscreen'
props = WindowPropertie
props.setParent
base.openDefaul
frame.Show(True)
run()