Python/wxPython/wx.StaticBitmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
= XRC Example = | = XRC Example = | ||
| Line 28: | Line 20: | ||
# TODO | # TODO | ||
</source> | </source> | ||
= Documents = | |||
* [https://docs.wxpython.org/wx.StaticBitmap.html wxPython] | |||
* [https://wiki.wxwidgets.org/Using_XML_Resources_with_XRC#wxStaticText XRC] | |||
* [https://docs.wxpython.org/wx.Image.html wxImage] | |||
* [https://docs.wxpython.org/wx.Bitmap.html wxBitmap] | |||
Revision as of 09:46, 4 December 2019
XRC Example
wxPython
im = wx.Image(image_stream)
bm = wx.Bitmap(im)
sb = wx.xrc.XRCCTRL(self.frame, 'name_of_wxsb', 'wxStaticBitmap')
sb.SetBitmap(bm)
XRC
<object name="name_of_wxsb" class="wxStaticBitmap">
<size>200,60</size>
</object>
Programmatically Example
# TODO