Python/wxPython/wx.StaticBitmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
* [https://docs.wxpython.org/wx.Bitmap.html wxBitmap] | * [https://docs.wxpython.org/wx.Bitmap.html wxBitmap] | ||
= wxPython = | = XRC Example = | ||
=== wxPython === | |||
<source lang="python"> | <source lang="python"> | ||
im = wx.Image(image_stream) | im = wx.Image(image_stream) | ||
| Line 15: | Line 17: | ||
</source> | </source> | ||
= XRC = | === XRC === | ||
<source lang="xml"> | <source lang="xml"> | ||
<object name="name_of_wxsb" class="wxStaticBitmap"> | <object name="name_of_wxsb" class="wxStaticBitmap"> | ||
<size>200,60</size> | <size>200,60</size> | ||
</object> | </object> | ||
</source> | |||
= Programmatically Example = | |||
<source lang="python"> | |||
# TODO | |||
</source> | </source> | ||
Revision as of 09:45, 4 December 2019
Documents
See
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