Show how to get an icon from a bitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-04-30 18:33:20 +00:00
parent d7ec656498
commit b6962846e8

View File

@@ -78,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__':