- ('New since last release', ['wxProcess',
- ]),
-
- ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']),
-
- ('Non-Managed Windows', ['wxGrid', 'wxSashWindow',
- 'wxScrolledWindow', 'wxSplitterWindow',
- 'wxStatusBar', 'wxNotebook',
- 'wxHtmlWindow',
- 'wxStyledTextCtrl_1', 'wxStyledTextCtrl_2',]),
-
- ('Common Dialogs', ['wxColourDialog', 'wxDirDialog', 'wxFileDialog',
- 'wxSingleChoiceDialog', 'wxTextEntryDialog',
- 'wxFontDialog', 'wxPageSetupDialog', 'wxPrintDialog',
- 'wxMessageDialog', 'wxProgressDialog']),
-
- ('Controls', ['wxButton', 'wxCheckBox', 'wxCheckListBox', 'wxChoice',
- 'wxComboBox', 'wxGauge', 'wxListBox', 'wxListCtrl', 'wxTextCtrl',
- 'wxTreeCtrl', 'wxSpinButton', 'wxSpinCtrl', 'wxStaticText',
- 'wxStaticBitmap', 'wxRadioBox', 'wxSlider', 'wxToolBar',
- 'wxCalendarCtrl',
- ]),
-
- ('Window Layout', ['wxLayoutConstraints', 'Sizers', ]),
-
- ('Miscellaneous', [ 'DragAndDrop', 'CustomDragAndDrop', 'FontEnumerator',
- 'wxTimer', 'wxValidator', 'wxGLCanvas', 'DialogUnits',
- 'wxImage', 'wxMask', 'PrintFramework', 'wxOGL',
- 'PythonEvents', 'Threads',
- 'ActiveXWrapper_Acrobat', 'ActiveXWrapper_IE',
- 'wxDragImage',
- ]),
-
- ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog',
- 'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar',
- 'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow',
- 'FileBrowseButton', 'GenericButtons', 'wxEditor',
- 'PyShellWindow',
- ]),
-
- ('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']),
-
- ]
+ # new stuff
+ ('New since last release', [
+ 'RowColSizer',
+ 'Unicode',
+ 'wxFileHistory',
+ 'wxGenericDirCtrl',
+ 'wxImageFromStream',
+ ]),
+
+ # managed windows == things with a caption you can close
+ ('Base Frames and Dialogs', [
+ 'wxDialog',
+ 'wxFrame',
+ 'wxMDIWindows',
+ 'wxMiniFrame',
+ ]),
+
+ # the common dialogs
+ ('Common Dialogs', [
+ 'wxColourDialog',
+ 'wxDirDialog',
+ 'wxFileDialog',
+ 'wxFindReplaceDialog',
+ 'wxFontDialog',
+ 'wxMessageDialog',
+ 'wxPageSetupDialog',
+ 'wxPrintDialog',
+ 'wxProgressDialog',
+ 'wxSingleChoiceDialog',
+ 'wxTextEntryDialog',
+ ]),
+
+ # dialogs form libraries
+ ('More Dialogs', [
+ 'ErrorDialogs',
+ 'ImageBrowser',
+ 'wxMultipleChoiceDialog',
+ 'wxScrolledMessageDialog',
+ ]),
+
+ # core controls
+ ('Core Windows/Controls', [
+ 'VirtualListCtrl',
+ 'wxButton',
+ 'wxCheckBox',
+ 'wxCheckListBox',
+ 'wxChoice',
+ 'wxComboBox',
+ 'wxGauge',
+ 'wxGenericDirCtrl',
+ 'wxGrid',
+ 'wxListBox',
+ 'wxListCtrl',
+ 'wxNotebook',
+ 'wxPopupWindow',
+ 'wxRadioBox',
+ 'wxSashWindow',
+ 'wxSlider',
+ 'wxScrolledWindow',
+ 'wxSplitterWindow',
+ 'wxSpinButton',
+ 'wxSpinCtrl',
+ 'wxStaticText',
+ 'wxStaticBitmap',
+ 'wxStatusBar',
+ 'wxTextCtrl',
+ 'wxToggleButton',
+ 'wxToolBar',
+ 'wxTreeCtrl',
+ 'wxValidator',
+ ]),
+
+ # controls coming from other librairies
+ ('More Windows/Controls', [
+ 'ColourSelect',
+ 'ContextHelp',
+ 'FancyText',
+ 'FileBrowseButton',
+ 'GenericButtons',
+ 'PyCrust',
+ 'PyCrustWithFilling',
+ 'SplitTree',
+ 'TablePrint',
+ 'wxCalendar',
+ 'wxCalendarCtrl',
+ 'wxDynamicSashWindow',
+ 'wxEditableListBox',
+ 'wxEditor',
+ 'wxFloatBar',
+ 'wxHtmlWindow',
+ 'wxLEDNumberCtrl',
+ 'wxMimeTypesManager',
+ 'wxMVCTree',
+ 'wxStyledTextCtrl_1',
+ 'wxStyledTextCtrl_2',
+ 'wxRightTextCtrl',
+ ]),
+
+ # How to lay out the controls in a frame/dialog
+ ('Window Layout', [
+ 'LayoutAnchors',
+ 'Layoutf',
+ 'RowColSizer',
+ 'Sizers',
+ 'wxLayoutConstraints',
+ 'XML_Resource',
+ ]),
+
+ # ditto
+ ('Process and Events', [
+ 'infoframe',
+ 'OOR',
+ 'PythonEvents',
+ 'Threads',
+ 'wxProcess',
+ 'wxTimer',
+ ]),
+
+ # Clipboard and DnD
+ ('Clipboard and DnD', [
+ 'CustomDragAndDrop',
+ 'DragAndDrop',
+ 'URLDragAndDrop',
+ ]),
+
+ # Images
+ ('Images', [
+ 'wxDragImage',
+ 'wxImage',
+ 'wxImageFromStream',
+ 'wxMask',
+ ]),
+
+ # Other stuff
+ ('Miscellaneous', [
+ 'ColourDB',
+ 'DialogUnits',
+ 'DrawXXXList',
+ 'FontEnumerator',
+ 'PrintFramework',
+ 'Unicode',
+ 'wxFileHistory',
+ 'wxJoystick',
+ 'wxOGL',
+ 'wxWave',
+ ]),
+
+ # need libs not coming with the demo
+ ('Objects using an external library', [
+ 'ActiveXWrapper_Acrobat',
+ 'ActiveXWrapper_IE',
+ 'wxGLCanvas',
+ 'wxPlotCanvas',
+ ]),
+
+ # pyTree, hangman, ... in the samples dir
+ ('Check out the samples dir too', [
+ ]),
+
+]
+
+
+
+#---------------------------------------------------------------------------
+
+class MyLog(wxPyLog):
+ def __init__(self, textCtrl, logTime=0):
+ wxPyLog.__init__(self)
+ self.tc = textCtrl
+ self.logTime = logTime
+
+ def DoLogString(self, message, timeStamp):
+ if self.logTime:
+ message = time.strftime("%X", time.localtime(timeStamp)) + \
+ ": " + message
+ self.tc.AppendText(message + '\n')
+
+
+#---------------------------------------------------------------------------
+
+def opj(path):
+ """Convert paths to the platform-specific separator"""
+ return apply(os.path.join, tuple(string.split(path, '/')))
+