Python/wxPython/wx.StaticBitmap: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''Documents''' * [https://docs.wxpython.org/wx.CheckBox.html#wx.CheckBox wxPython] * [https://wiki.wxwidgets.org/Using_XML_Resources_with_XRC#wxCheckBox XRC] = wxPython = <s...") |
|||
| Line 5: | Line 5: | ||
= wxPython = | = wxPython = | ||
<source lang="python"> | <source lang="python"> | ||
im = wx.Image(image_stream) | |||
bm = wx.Bitmap(im) | |||
sb = wx.xrc.XRCCTRL(self.frame, 'captcha_image', 'wxStaticBitmap') | |||
sb.SetBitmap(bm) | |||
</source> | </source> | ||