Skip to content

Commit

Permalink
Fix TypeError in samples/hello.py
Browse files Browse the repository at this point in the history
The call to wx.StaticBitmap in hello.py produces a TypeError. The argument should be 'bitmap=bmp' not 'label=bmp'
  • Loading branch information
Craig MacEachern authored Oct 23, 2017
1 parent ec00c6b commit 41c0ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/simple/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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()
Expand Down

0 comments on commit 41c0ceb

Please sign in to comment.