Chris2
1
Hello everybody
I have a problem resizing a widget after creating it.
html = wx.richtext.RichTextCtrl(panel, -1, size=(-1, 500), style = wx.NO_BORDER)
How can i resize after creation ???
html = wx.richtext.RichTextCtrl(panel, -1, style = wx.NO_BORDER)
html.???(-1,500)
Thx for help
Chris2
3
SetSize doesn t do the trick
I just find
html.SetMinSize(wx.Size(-1,html.GetNumberOfLines()*19))
It s just do what i want
Thx Cody
···
2010/1/15 Cody Precord codyprecord@gmail.com
Hi,
On Fri, Jan 15, 2010 at 8:46 AM, Christian Démolis > > christiandemolis@gmail.com wrote:
Hello everybody
I have a problem resizing a widget after creating it.
html = wx.richtext.RichTextCtrl(panel, -1, size=(-1, 500), style =
wx.NO_BORDER)
How can i resize after creation ???
html = wx.richtext.RichTextCtrl(panel, -1, style = wx.NO_BORDER)
html.???(-1,500)
http://wxpython.org/docs/api/wx.richtext.RichTextCtrl-class.html
RichTextCtrl derives from wx.Window, if you look there you will see
that all Window objects have a SetSize method.
Cody
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en