UPDATE Re: statictext wraps too small under wxpython 2.8.8 (ubuntu 8.04)

the problem is not in the wrapping, apparently but in the way the string
comes in from XRC. There are newlines instead of whitespaces in the
instantiated object.

BTW: both on Ubuntu and Windows XP

see below:

c.GetLabel()

u'Buddies\nare\npeople\nin\nyour\naddressbook\nthat\nyou\nwant\nto\nshare\npresence\ninformation\nwith.'

with this in the XRC

<label>Buddies are people in your addressbook that you want to share
presence information with.</label>

what is going wrong here?

Paul

Paul Sijben wrote:

···

since I upgraded to wxpython 2.8.8 my statictexts no longer use up the
full space the statictext gets, rather it crowds some 50 pixels and
wraps to the next line.

it happens in my code and in xrced.

What changed and how do I get the text to (again) use the full width?

Paul

--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs

Paul Sijben wrote:

the problem is not in the wrapping, apparently but in the way the string
comes in from XRC. There are newlines instead of whitespaces in the
instantiated object.

BTW: both on Ubuntu and Windows XP

I'm not able to duplicate this, please provide a small sample.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Paul Sijben wrote:

Robin,

please find attached a very small XRC file. When I open & view it in a
recently checked out XRCed I see each word on one line, as in the
attached screenshot.

              <object class="wxStaticText" name="Buddy_wrapme">
                <size>200,60</size>
                <label>Buddies are people in your addressbook that you want to share presence information with.</label>
                <wrap>1</wrap>
                <style>wxALIGN_CENTRE</style>
              </object>

Wrap is not a boolean option, but rather a pixel width. So you are telling it to word wrap the text using lines up to 1 pixel wide.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!