[pygtk] Display tooltips in status bar
Tony Nelson
tonynelson at georgeanelson.com
Sat May 13 08:05:36 WST 2006
At 12:03 AM +0200 5/13/06, Jarek Zgoda wrote:
>Patrick K. O'Brien napisal:
>
>>>I'd like to display menuitem's tooltip text in status bar area. Which
>>>event should I intercept to be able to prevent displaying it in usual
>>>tooltip window? I tried with show-help, but this doesn't seem to work.
>>
>> This is actually not trivial, unfortunately. The following code shows
>> one way to do it. (Johan Dahlin wrote most of this code and deserves
>> the credit for it.) Note that the gazpacho widget loader doesn't have
>> the granularity required to connect the proxy handlers in time to work
>> as shown here (though it would be real nice if it did):
>
>Gosh, didn't think this could be *that* complicated...
It isn't. Nearly all that code is the usual boilerplate for having menus.
Only the "proxy" and "select" stuff is new and related to the tooltips.
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the pygtk
mailing list