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:
@@ -56,9 +56,16 @@ else:
|
|||||||
box.Add(btn, 0, wxALIGN_CENTER|wxALL, 15)
|
box.Add(btn, 0, wxALIGN_CENTER|wxALL, 15)
|
||||||
EVT_BUTTON(self, k, self.OnButton)
|
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.SetAutoLayout(true)
|
||||||
self.SetSizer(box)
|
self.SetSizer(box)
|
||||||
|
|
||||||
|
|
||||||
def OnButton(self, evt):
|
def OnButton(self, evt):
|
||||||
canvasClassName = buttonDefs[evt.GetId()][0]
|
canvasClassName = buttonDefs[evt.GetId()][0]
|
||||||
canvasClass = eval(canvasClassName)
|
canvasClass = eval(canvasClassName)
|
||||||
|
Reference in New Issue
Block a user