mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user