Python/wxPython/wx.TextCtrl: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''Documents'''
= XRC Example =
* [https://docs.wxpython.org/wx.CheckBox.html#wx.CheckBox wxPython]
* [https://wiki.wxwidgets.org/Using_XML_Resources_with_XRC#wxCheckBox XRC]
* [https://docs.wxpython.org/wx.KeyEvent.html KeyEvent]


= wxPython =
=== Python ===
<source lang="python">
<source lang="python">
im = wx.Image(image_stream)
bm = wx.Bitmap(im)
sb = wx.xrc.XRCCTRL(self.frame, 'name_of_wxsb', 'wxStaticBitmap')
sb.SetBitmap(bm)
</source>
</source>


= XRC =
=== XRC ===
<source lang="xml">
<source lang="xml">
<object name="name_of_wxsb" class="wxStaticBitmap">
  <size>200,60</size>
</object>
</source>
= Programmatically Example =
<source lang="python">
# TODO
</source>
</source>
= Documents =
* [https://docs.wxpython.org/wx.CheckBox.html#wx.CheckBox wxPython]
* [https://wiki.wxwidgets.org/Using_XML_Resources_with_XRC#wxCheckBox XRC]
* [https://docs.wxpython.org/wx.KeyEvent.html KeyEvent]

Revision as of 09:55, 4 December 2019

XRC Example

Python

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

Documents