Line wrap within toolTip window.

Hello Bo,

Well, "The wxPython-users mailing list is famous for its helpful and
friendly members. "

It is. This is one of the best NG I have ever found. This sentence says only
the truth :wink:

but I get no reply for my three messages here. I
guess my problems are too simple to be discussed?

No, they aren't. I'll try to give some suggestion. Please let us know if
something below works for you.

I don't know which Windows version you have, but here everythin is working
fine (XP and 2000) *without* the "\n" separator. Lines are wrapped nicely
automagically by wxPython. There was a thread similar to the one you posted
some days ago.

I don't own a Linux box, so I can't say anything about it.

BUT:

Noting that this is the second time that a similar message appears, my
suggestions are:

1) In the Demo for the custom class I wrote (ToasterBox), there are these
commands:

helpstr = "You Can Add A .bmp File As The Background To The Popup Window. "
\
              "The Picture Will Autosize To The Window"
txtCtrl4c.SetToolTip(wx.ToolTip(helpstr))

txtCtrl4 is a wx.TextCtrl. Notice that there is *not* any "\n" separator.
Here the lines are wrapped nicely (XP/2000, Python 2.4.1, wxPython 2.6.1.1),
so there is no need of the "\n" separator. If you want to look at the demo,
please visit:

http://xoomer.virgilio.it/infinity77/eng/freeware.html#toasterbox

2) *Don't* use SetToolTipString(): use instead
SetToolTip(wx.ToolTip(your_string)).

Regarding the second point, you are the second person that post this kind of
message, so I assume that there may be some strange "bug" into
SetToolTipString().

HTH.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77