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
This commit is contained in:
Robin Dunn 2002-06-13 16:57:18 +00:00
parent d58a80fae0
commit 4ece0694e1

View File

@ -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)