Is s[23] a string? How big is it?
> Is there a fixed length on the tooltip size? I am trying to print a location of a file which could be several directories deep. My intent is to only show the file name and on mouse-over show the entire path.
>
On Windows at least I think that there is a limit, but I don't remember
the details. I would guess that it is something like 255 characters.
--
Robin Dunn
Software Craftsman
http://wxPython.org
For me, there doesn't seem to be a reasonable size limit for tooltips
on win XP; even a string not fitting on the whole screen can be set
(e.g. str(range(2000)) which is 10890 chars).
for the original problem, I'd guess, something else than string or
unicode is being set; would it be possible to use
self.coVal.SetToolTip (wx.ToolTip (coStr)) instead of ... co_tt ? Is
it to create an abbreviated label with a complete string as tooltip?
vbr
On 03/09/2010 21:00, Mike Driscoll wrote:
>
> On Sep 3, 1:05 pm, Steve<ghostra...@gmail.com> wrote:
>> Is there a fixed length on the tooltip size? I am trying to print a location
>> of a file which could be several directories deep. My intent is to only show
>> the file name and on mouse-over show the entire path.
>>
>> - Steve
>>
>
> You may need to use TipWindow for that. I don't remember there being a
> fixed length for tooltips, but I wouldn't be surprised either.
>
You might also want to look at "agw.supertooltip" - check out the
wxPython demo for it (btw you will have to enlarge the dialog a bit to
make the two buttons show).
Werner
Hi,
what widget is coVal ?
I tested tooltips with wx.Button and didn't hit any limitation (string
size, slashes, backslashes ...) - on win XPp.
vbr
Why don't you post a small runnable sample that allow others to run it
and also see the same error messages you are getting (if you're
getting any).