X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03a2c062211b05c6c3fdcbe255341b181721b3fe..19b726bbca63289d69d013e65d6b26e8b641718d:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 076240ec1d..a18951f49f 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -23,6 +23,7 @@ import images _treeList = [ ('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__':