X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/118f4724b64394abb6501836d63bf273557a2f5f..6a30d63aeddf193ee6e672ce29911a8d29f4fe03:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 65201470d4..ef214a2a53 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -18,14 +18,17 @@ import wx.html import images -##wx.Trap() +# For debugging +##wx.Trap(); +##print os.getpid(); raw_input("Press a key...") + # Use Python's bool constants if available, make aliases if not try: True except NameError: - True = 1==1 - False = 1==0 + __builtins__.True = 1==1 + __builtins__.False = 1==0 #--------------------------------------------------------------------------- @@ -37,6 +40,8 @@ _treeList = [ 'wxListbook', 'wxMaskedNumCtrl', 'FloatCanvas', + 'wxXmlResourceSubclass', + 'wxGridBagSizer', ]), # managed windows == things with a (optional) caption you can close @@ -81,7 +86,6 @@ _treeList = [ 'wxChoice', 'wxComboBox', 'wxGauge', - 'wxGenericDirCtrl', 'wxGrid', 'wxGrid_MegaExample', 'wxListbook', @@ -109,18 +113,28 @@ _treeList = [ 'wxValidator', ]), + ('Custom Controls', [ + 'AnalogClockWindow', + 'ColourSelect', + 'GenericButtons', + 'wxEditor', + 'wxGenericDirCtrl', + 'wxLEDNumberCtrl', + 'wxMultiSash', + 'wxPopupControl', + 'wxPyColourChooser', + 'wxTreeListCtrl', + ]), + # controls coming from other libraries ('More Windows/Controls', [ #'wxFloatBar', deprecated #'wxMVCTree', deprecated #'wxRightTextCtrl', deprecated as we have wxTE_RIGHT now. - 'AnalogClockWindow', - 'ColourSelect', 'ContextHelp', 'FancyText', 'FloatCanvas', 'FileBrowseButton', - 'GenericButtons', 'MaskedEditControls', 'PyShell', 'PyCrust', @@ -129,22 +143,16 @@ _treeList = [ 'Throbber', 'wxCalendar', 'wxCalendarCtrl', - 'wxPyColourChooser', 'wxDynamicSashWindow', 'wxEditableListBox', - 'wxEditor', 'wxHtmlWindow', 'wxIEHtmlWin', 'wxIntCtrl', - 'wxLEDNumberCtrl', 'wxMimeTypesManager', 'wxMaskedNumCtrl', - 'wxMultiSash', - 'wxPopupControl', 'wxStyledTextCtrl_1', 'wxStyledTextCtrl_2', 'wxTimeCtrl', - 'wxTreeListCtrl', 'wxVListBox', ]), @@ -154,10 +162,12 @@ _treeList = [ 'Layoutf', 'RowColSizer', 'Sizers', + 'wxGridBagSizer', 'wxLayoutConstraints', 'wxScrolledPanel', 'wxXmlResource', 'wxXmlResourceHandler', + 'wxXmlResourceSubclass', ]), # ditto @@ -805,7 +815,7 @@ def main(): os.chdir(demoPath) except: pass - app = MyApp(wx.Platform == "__WXMAC__") + app = MyApp(0) #wx.Platform == "__WXMAC__") app.MainLoop()