wxPython module for OGL added.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-09-10 06:25:47 +00:00
parent 1afc06c2d8
commit e91a9dfcc3
24 changed files with 36927 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ _treeList = [
('Window Layout', ['wxLayoutConstraints', 'Sizers']),
('Miscellaneous', ['wxTimer', 'wxGLCanvas', 'DialogUnits', 'wxImage',
'PrintFramework']),
'PrintFramework', 'wxOGL']),
('wxPython Library', ['Sizers', 'Layoutf', 'wxScrolledMessageDialog',
'wxMultipleChoiceDialog', 'wxPlotCanvas']),
@@ -188,6 +188,7 @@ class wxPythonDemo(wxFrame):
#self.nb.ResizeChildren();
self.nb.Refresh();
#wxYield()
self.window = None
else:
if os.path.exists(itemText + '.py'):
@@ -199,15 +200,16 @@ class wxPythonDemo(wxFrame):
self.nb.Refresh();
wxYield()
window = module.runTest(self, self.nb, self)
if window:
self.nb.AddPage(window, 'Demo')
self.window = module.runTest(self, self.nb, self)
if self.window:
self.nb.AddPage(self.window, 'Demo')
self.nb.SetSelection(2)
self.nb.ResizeChildren();
else:
self.ovr.Clear()
self.txt.Clear()
self.window = None
#---------------------------------------------
@@ -254,12 +256,14 @@ class wxPythonDemo(wxFrame):
#---------------------------------------------
def OnCloseWindow(self, event):
self.dying = true
self.window = None
self.Destroy()
#---------------------------------------------
def OnIdle(self, event):
if self.otherWin:
self.otherWin.Raise()
self.window = self.otherWin
self.otherWin = None