_treeList = [
('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']),
- ('Miscellaneous Windows', ['wxGrid', 'wxSashWindow',
+ ('Non-Managed Windows', ['wxGrid', 'wxSashWindow',
'wxScrolledWindow', 'wxSplitterWindow',
'wxStatusBar', 'wxToolBar', 'wxNotebook',
'wxHtmlWindow']),
('Window Layout', ['wxLayoutConstraints', 'Sizers', 'OldSizers']),
- ('Miscellaneous', ['wxTimer', 'wxValidator', 'wxGLCanvas', 'DialogUnits',
- 'wxImage', 'PrintFramework', 'wxOGL']),
+ ('Miscellaneous', [ 'DragAndDrop', 'CustomDragAndDrop', 'FontEnumerator',
+ 'wxTimer', 'wxValidator', 'wxGLCanvas', 'DialogUnits',
+ 'wxImage', 'PrintFramework', 'wxOGL', 'PythonEvents']),
- ('wxPython Library', ['OldSizers', 'Layoutf', 'wxScrolledMessageDialog',
+ ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog',
'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar',
- 'PyShell']),
+ 'PyShell', 'wxCalendar']),
('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']),
(w, self.charHeight) = self.log.GetTextExtent('X')
self.WriteText('wxPython Demo Log:\n')
+ self.Show(true)
# add the windows to the splitter and split it.
if _useSplitter:
self.tree.EnsureVisible(selectedDemo)
+ self.WriteText('window handle: %s\n' % self.GetHandle())
+
+
#---------------------------------------------
def WriteText(self, text):
self.log.WriteText(text)
else:
if os.path.exists(itemText + '.py'):
+ wxBeginBusyCursor()
self.GetDemoFile(itemText + '.py')
module = __import__(itemText, globals())
self.SetOverview(itemText, module.overview)
+ wxEndBusyCursor()
# in case runTest is modal, make sure things look right...
self.nb.Refresh();
self.nb.AddPage(self.window, 'Demo')
#self.nb.ResizeChildren()
self.nb.SetSelection(2)
- self.nb.ResizeChildren()
+ #self.nb.ResizeChildren()
#if self.window.GetAutoLayout():
# self.window.Layout()