How to pass my custom wrapped wxGLCanvas pointer to wxPython?

Hi.

I derive wxGLCanvas in my C++ code and I provide Python bindings of it with SWIG.

How do I pass my derived wxGLCanvas Python exported class to wxPython?

Thanks.

Have you seen these?:
http://wiki.wxpython.org/GLCanvas

http://wxpython.org/Phoenix/docs/html/glcanvas.GLCanvas.html

http://wiki.wxpython.org/GLCanvas%20update

http://code.activestate.com/recipes/325392-use-wxpythonopengl-to-draw-a-sphere/

wxPython-demo-3.0.0.0/wxPython-3.0.0.0/demo/GLCanvas.py

which is in here:

http://downloads.sourceforge.net/wxpython/wxPython-demo-3.0.0.0.tar.bz2

···

On Monday, June 23, 2014 10:45:51 PM UTC-7, Michael Kapelko wrote:

Hi.

I derive wxGLCanvas in my C++ code and I provide Python bindings of it with SWIG.

How do I pass my derived wxGLCanvas Python exported class to wxPython?

Thanks.

Thanks. I managed to get around with wxWindow::GetWindowById.

···

среда, 25 июня 2014 г., 0:35:13 UTC+7 пользователь Nathan McCorkle написал:

Have you seen these?:
http://wiki.wxpython.org/GLCanvas
http://stackoverflow.com/a/6041472/253127

http://wxpython.org/Phoenix/docs/html/glcanvas.GLCanvas.html

http://wiki.wxpython.org/GLCanvas%20update

http://code.activestate.com/recipes/325392-use-wxpythonopengl-to-draw-a-sphere/

wxPython-demo-3.0.0.0/wxPython-3.0.0.0/demo/GLCanvas.py

which is in here:

http://downloads.sourceforge.net/wxpython/wxPython-demo-3.0.0.0.tar.bz2

On Monday, June 23, 2014 10:45:51 PM UTC-7, Michael Kapelko wrote:

Hi.

I derive wxGLCanvas in my C++ code and I provide Python bindings of it with SWIG.

How do I pass my derived wxGLCanvas Python exported class to wxPython?

Thanks.