X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fa68946ec0528d9388c92c24b5e9e31c6c46f31..80a81a12af49ab6acdaf0b62f4aa55e56f45ac6d:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index e353972a2d..d7c11064b9 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -18,17 +18,11 @@ import wx.html import images -##wx.Trap() -##raw_input("Press a key...") +# 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 - #--------------------------------------------------------------------------- @@ -40,6 +34,7 @@ _treeList = [ 'wxMaskedNumCtrl', 'FloatCanvas', 'wxXmlResourceSubclass', + 'wxGridBagSizer', ]), # managed windows == things with a (optional) caption you can close @@ -84,7 +79,6 @@ _treeList = [ 'wxChoice', 'wxComboBox', 'wxGauge', - 'wxGenericDirCtrl', 'wxGrid', 'wxGrid_MegaExample', 'wxListbook', @@ -112,18 +106,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', @@ -132,22 +136,17 @@ _treeList = [ 'Throbber', 'wxCalendar', 'wxCalendarCtrl', - 'wxPyColourChooser', 'wxDynamicSashWindow', 'wxEditableListBox', - 'wxEditor', 'wxHtmlWindow', 'wxIEHtmlWin', 'wxIntCtrl', - 'wxLEDNumberCtrl', 'wxMimeTypesManager', 'wxMaskedNumCtrl', - 'wxMultiSash', - 'wxPopupControl', + 'wxScrolledPanel', 'wxStyledTextCtrl_1', 'wxStyledTextCtrl_2', 'wxTimeCtrl', - 'wxTreeListCtrl', 'wxVListBox', ]), @@ -157,6 +156,7 @@ _treeList = [ 'Layoutf', 'RowColSizer', 'Sizers', + 'wxGridBagSizer', 'wxLayoutConstraints', 'wxScrolledPanel', 'wxXmlResource', @@ -809,7 +809,7 @@ def main(): os.chdir(demoPath) except: pass - app = MyApp(wx.Platform == "__WXMAC__") + app = MyApp(0) #wx.Platform == "__WXMAC__") app.MainLoop()