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'
This commit is contained in:
Craig MacEachern
2017-10-23 10:40:07 -04:00
committed by GitHub
parent ec00c6bd74
commit 41c0ceb3da

View File

@@ -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()