crash when setting a parent window from a wx handle on osx
Bug #273608 reported by
Hypnos
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Won't Fix
|
High
|
David Rose |
Bug Description
When grabbing a handle from a wxPython window using GetHandle() and passing that in Panda's WindowPropertie
Crash information is available at this forum thread:
http://
summary: |
- panda3d osx wxwindows crash + crash when setting a parent window from a wx handle on osx |
description: | updated |
tags: | added: wx |
Changed in panda3d: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in panda3d: | |
assignee: | nobody → David Rose (droklaunchpad) |
tags: |
added: macos removed: osx |
To post a comment you must log in.
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()