Is there some reason wxTextCtrl won't respond to a SetSize call? Here's what I'm doing:
myText = wx.TextCtrl(panel, -1, "Some text")
myText.SetSize((50,50))
MyText.Refresh()
But the TextCtrl never changes size. This code works on a wxStaticText control, why not on a wxTextCtrl?
Many thanks,
Michael Hipp
Heber Springs, Arkansas, USA
Robin
2
Michael Hipp wrote:
Is there some reason wxTextCtrl won't respond to a SetSize call? Here's what I'm doing:
myText = wx.TextCtrl(panel, -1, "Some text")
myText.SetSize((50,50))
MyText.Refresh()
But the TextCtrl never changes size. This code works on a wxStaticText control, why not on a wxTextCtrl?
Is it in a sizer? If so then the sizer is probably pushing it back to the default size. (See the Migration Guide for notes about new sizer behavior.)
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!