Python/wxPython/wx.StaticBitmap

From Fundamental Ramen
Jump to navigation Jump to search

Documents

wxPython

im = wx.Image(image_stream)
bm = wx.Bitmap(im)
sb = wx.xrc.XRCCTRL(self.frame, 'name_in_xrc', 'wxStaticBitmap')
sb.SetBitmap(bm)

XRC

<object class="wxCheckBox" name="checkbox_id">
  <size>200,50</size>
  <label>CheckBoxItem</label>
  <checked>1</checked>
</object>