From: Robin Dunn Date: Thu, 13 Jun 2002 16:57:18 +0000 (+0000) Subject: Added code (currently disabled) to show putting a wxGLCanvas on a panel X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4ece0694e1a6c071705b6e0d29ca7a5e99d1c0b5?ds=inline Added code (currently disabled) to show putting a wxGLCanvas on a panel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/wxGLCanvas.py b/wxPython/demo/wxGLCanvas.py index 015504053b..d1e2c025b5 100644 --- a/wxPython/demo/wxGLCanvas.py +++ b/wxPython/demo/wxGLCanvas.py @@ -56,9 +56,16 @@ else: box.Add(btn, 0, wxALIGN_CENTER|wxALL, 15) EVT_BUTTON(self, k, self.OnButton) + #** Enable this to show putting a wxGLCanvas on the wxPanel + if 0: + c = CubeCanvas(self) + c.SetSize((200, 200)) + box.Add(c, 0, wxALIGN_CENTER|wxALL, 15) + self.SetAutoLayout(true) self.SetSizer(box) + def OnButton(self, evt): canvasClassName = buttonDefs[evt.GetId()][0] canvasClass = eval(canvasClassName)