X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96bfd05319f9e393843e84ca5274d85ff248bad4..19b726bbca63289d69d013e65d6b26e8b641718d:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index f78f494f19..a18951f49f 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -22,7 +22,8 @@ import images _treeList = [ - ('New since last release', ['ColourSelect', 'ImageBrowser', + ('New since last release', ['ColourSelect', 'ImageBrowser', 'infoframe', + 'ColourDB', 'wxToggleButton', ]), ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']), @@ -42,7 +43,7 @@ _treeList = [ 'wxComboBox', 'wxGauge', 'wxListBox', 'wxListCtrl', 'wxTextCtrl', 'wxTreeCtrl', 'wxSpinButton', 'wxSpinCtrl', 'wxStaticText', 'wxStaticBitmap', 'wxRadioBox', 'wxSlider', 'wxToolBar', - 'wxCalendarCtrl', + 'wxCalendarCtrl', 'wxToggleButton', ]), ('Window Layout', ['wxLayoutConstraints', 'LayoutAnchors', 'Sizers', ]), @@ -77,7 +78,14 @@ class wxPythonDemo(wxFrame): self.cwd = os.getcwd() self.curOverview = "" - icon = wxIconFromXPMData(images.getMondrianData()) + if 1: + icon = wxIconFromXPMData(images.getMondrianData()) + else: + # another way to do it + bmp = images.getMondrianBitmap() + icon = wxEmptyIcon() + icon.CopyFromBitmap(bmp) + self.SetIcon(icon) if wxPlatform == '__WXMSW__':