Python/wxPython/wx.TextCtrl: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
=== XRC ===
=== XRC ===
<source lang="xml">
<source lang="xml">
<object name="name_of_wxsb" class="wxStaticBitmap">
<object name="name_of_wxtc" class="wxTextCtrl">
   <size>200,60</size>
   <size>200,25</size>
</object>
</object>
</source>
</source>

Revision as of 09:56, 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_wxtc" class="wxTextCtrl">
  <size>200,25</size>
</object>

Programmatically Example

# TODO

Documents