import sys, os
from wxPython.wx import *
-
+from wxPython.lib.splashscreen import SplashScreen
#---------------------------------------------------------------------------
_useNestedSplitter = true
_treeList = [
+ ('New since last release', ['wxMVCTree', 'wxVTKRenderWindow']),
+
('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',
+ 'Threads']),
- ('wxPython Library', ['OldSizers', 'Layoutf', 'wxScrolledMessageDialog',
+ ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog',
'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar',
- 'PyShell']),
+ 'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow']),
('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)
wxImage_AddHandler(wxJPEGHandler())
wxImage_AddHandler(wxPNGHandler())
wxImage_AddHandler(wxGIFHandler())
- frame = wxPythonDemo(NULL, -1, "wxPython: (A Demonstration)")
+
+ self.splash = SplashScreen(None, bitmapfile='bitmaps/splash.gif',
+ duration=4000, callback=self.AfterSplash)
+ self.splash.Show(true)
+ wxYield()
+ return true
+
+ def AfterSplash(self):
+ self.splash.Close(true)
+ frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
frame.Show(true)
self.SetTopWindow(frame)
return true