Global enable/disable for tooltips

30 views
Skip to first unread message

cappy2112

unread,
Dec 17, 2009, 3:10:13 PM12/17/09
to wxPython-users

I went to a lot of trouble adding tooltips to my widgets, now some
users don't like them.
Is there a 1-stop-shop to disable all the tooltips or do I need to
disable each one manually?
Ideally, I'd like to do this from a menu option- that part I can
figure out- if there is a way to globally enable/disable them.

Thanks

Mike Driscoll

unread,
Dec 17, 2009, 3:53:42 PM12/17/09
to wxPython-users
Hi,

Not that I'm aware of. You'll probably need to keep a list of the
widgets that get the tooltips and use that list to apply your settings
against.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Cody Precord

unread,
Dec 17, 2009, 4:11:09 PM12/17/09
to wxpytho...@googlegroups.com
Hi,

On Thu, Dec 17, 2009 at 2:53 PM, Mike Driscoll <kyos...@gmail.com> wrote:
> Hi,
>
> On Dec 17, 2:10 pm, cappy2112 <cappy2...@gmail.com> wrote:
>> I went to a lot of trouble adding tooltips to my widgets, now some
>> users don't like them.
>> Is there a 1-stop-shop to disable all the tooltips or do I need to
>> disable each one manually?
>> Ideally, I'd like to do this from a menu option- that part I can
>> figure out- if there is a way to globally enable/disable them.
>>
>> Thanks
>
> Not that I'm aware of. You'll probably need to keep a list of the
> widgets that get the tooltips and use that list to apply your settings
> against.

The tooltip class has a static method that should do this try calling

wx.ToolTip.Enable(False)

To globally disable all tooltips

see the manual:
http://docs.wxwidgets.org/stable/wx_wxtooltip.html#wxtooltipenable


Cody

Mike Driscoll

unread,
Dec 18, 2009, 9:28:46 AM12/18/09
to wxPython-users

Oops...pardon my ignorance. Thanks for the correction, Cody!

Reply all
Reply to author
Forward
0 new messages