_treeList = [
('New since last release', ['wxMVCTree', 'wxVTKRenderWindow',
- 'FileBrowseButton', #'wxToggleButton',
- 'GenericButtons']),
+ 'FileBrowseButton', 'GenericButtons',
+ 'wxMask', 'wxEditor']),
('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']),
('Non-Managed Windows', ['wxGrid', 'wxSashWindow',
'wxScrolledWindow', 'wxSplitterWindow',
- 'wxStatusBar', 'wxToolBar', 'wxNotebook',
+ 'wxStatusBar', 'wxNotebook',
'wxHtmlWindow']),
('Common Dialogs', ['wxColourDialog', 'wxDirDialog', 'wxFileDialog',
('Controls', ['wxButton', 'wxCheckBox', 'wxCheckListBox', 'wxChoice',
'wxComboBox', 'wxGauge', 'wxListBox', 'wxListCtrl', 'wxTextCtrl',
'wxTreeCtrl', 'wxSpinButton', 'wxStaticText', 'wxStaticBitmap',
- 'wxRadioBox', 'wxSlider', #'wxToggleButton'
+ 'wxRadioBox', 'wxSlider', 'wxToolBar', #'wxToggleButton'
]),
('Window Layout', ['wxLayoutConstraints', 'Sizers', 'OldSizers']),
('Miscellaneous', [ 'DragAndDrop', 'CustomDragAndDrop', 'FontEnumerator',
'wxTimer', 'wxValidator', 'wxGLCanvas', 'DialogUnits',
- 'wxImage', 'PrintFramework', 'wxOGL', 'PythonEvents',
- 'Threads']),
+ 'wxImage', 'wxMask', 'PrintFramework', 'wxOGL',
+ 'PythonEvents', 'Threads']),
('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog',
'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar',
'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow',
- 'FileBrowseButton', 'GenericButtons']),
+ 'FileBrowseButton', 'GenericButtons', 'wxEditor']),
('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']),
tID = wxNewId()
self.treeMap = {}
self.tree = wxTreeCtrl(splitter, tID)
+ #self.tree.SetBackgroundColour(wxNamedColour("Pink"))
root = self.tree.AddRoot("Overview")
firstChild = None
for item in _treeList:
self.nb.AddPage(self.window, 'Demo')
#self.nb.ResizeChildren()
self.nb.SetSelection(2)
+ #self.window.Refresh()
#self.nb.ResizeChildren()
#if self.window.GetAutoLayout():
# self.window.Layout()
#---------------------------------------------------------------------------
def main():
+ try:
+ demoPath = os.path.split(__file__)[0]
+ os.chdir(demoPath)
+ except:
+ pass
app = MyApp(0)
app.MainLoop()