[wxPython-users] wx.StaticText wrapping when it shouldn't
Nathan Lundquist
morbid.concept at gmail.com
Mon Apr 2 14:37:48 PDT 2007
Robin Dunn wrote:
> Nathan Lundquist wrote:
>> Hey everybody. I'm having a problem with wx.StaticText and wrapping. I
>> did a search through my so far collected wxPython mailing list archive
>> and came up with nothing.
>>
>> My wx.StaticText widgets are wrapping text in cases where it makes no
>> sense (at least to me). Some lines wrap that are shorter than lines that
>> don't wrap.
>>
>> Here's a small excerpt of the part of my app that generates the text
>> widgets.
>
> Platform and version? There was a bug in wxGTK when it calculated the
> best size of the static text that it could sometimes end up being 1
> pixel too narrow. So when the sizer sized it to that size the native
> widget thought that it needed to wrap. I'm pretty sure that this has
> been fixed in the current release, (and maybe one or two before that too.)
>
>
Linux/2.8 (now). I thought I was using 2.8 the whole time. Turns out I
had the binaries for 2.6 still installed and python was importing 2.6.
Removed the 2.6 binaries and now the text doesn't wrap with 2.8.
Thank you very much for your reply. I apologize for not realizing this
sooner.
More information about the wxpython-users
mailing list