I try to create a sizer and put a lable there, however, the font size
wont be changed when the frame or panel size is changed. Anyone can
tell me how to auto change the font size inside a sizer?
I try to create a sizer and put a lable there, however, the font
size wont be changed when the frame or panel size is changed. Anyone
can tell me how to auto change the font size inside a sizer?
For the archive, here is Chris Barker's reply to this same message on
wxPython-dev:
···
On 1/19/11 1:27 AM, LouisYang wrote:
You'll need to write a custom control (maybe a sub-class of an
existing one, like wx.lib.stattext). In that control, bind a method
to the EVT_SIZE event that changes the font size as you want it to.
--
Robin Dunn
Software Craftsman