From 41c0ceb3da03a403e1aca7448904b684b42c5011 Mon Sep 17 00:00:00 2001 From: Craig MacEachern Date: Mon, 23 Oct 2017 10:40:07 -0400 Subject: [PATCH] Fix TypeError in samples/hello.py The call to wx.StaticBitmap in hello.py produces a TypeError. The argument should be 'bitmap=bmp' not 'label=bmp' --- samples/simple/hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/simple/hello.py b/samples/simple/hello.py index 9a4ac13b..e187e269 100644 --- a/samples/simple/hello.py +++ b/samples/simple/hello.py @@ -15,7 +15,7 @@ st = wx.StaticText(pnl, pos=(15,40), st.SetFont(wx.FFont(10, wx.FONTFAMILY_SWISS, wx.FONTFLAG_BOLD)) bmp = wx.Bitmap(os.path.join(os.path.dirname(__file__), 'phoenix_main.png')) -sb = wx.StaticBitmap(pnl, label=bmp, pos=(15,85)) +sb = wx.StaticBitmap(pnl, bitmap=bmp, pos=(15,85)) frm.Show() app.MainLoop()