ogl library - double-click not working on CompositeShape object

Howdy. I’m having trouble with catching double-clicks in a wx.lib.ogl shape. Attached please find some sample code that creates two boxes; right-click and double-click should both print to the console. As you’ll see, right-click works for both objects, double-click does not work for the CompositeShape. I’d appreciate any assistance you can give me.

ogl_doubleclick_demo.py (2.21 KB)

Oh. Python 2.7 32-bit, wxPython 2.8.12.1.

Hmm, so what differs from the OGL.py demo? I see that includes the same kind of event handler setup, but doesn’t include the OnLeftDoubleClick function overload.

Maybe you can try adding OnLeftDoubleClick to the OGL.py demo, and see if the double-clicks are handled in that demo… then see what you’re doing differently or what you’re lacking or what you have typed in the wrong order.

···

On Tuesday, May 20, 2014 5:16:59 PM UTC-7, o0sh...@gmail.com wrote:

Oh. Python 2.7 32-bit, wxPython 2.8.12.1.

Same issue. Double-clicking on the composite shapes does nothing.

···

On Wednesday, May 21, 2014 11:54:07 AM UTC-6, Nathan McCorkle wrote:

Maybe you can try adding OnLeftDoubleClick to the OGL.py demo, and see if the double-clicks are handled in that demo… then see what you’re doing differently or what you’re lacking or what you have typed in the wrong order.

Bump: Tested on wxPython 3.0.0.0, same issue.