Am I right in assuming that there is no way to “globally” enable and disable ToolTips? I’ve traced the inheritance back to misc2 and see that there are only set and get methods, basically, all the way back. No “Enable” method as stated in the wxToolTip section of the docs.
I wanted to add a checkbox in preferences that disables ToolTips. Unless I’m missing something, very possible since I’ve only been trying my hand at programming for 2 months now, there’s no way to do this without a bit of custom code to evaluate the checkbox before setting the ToolTip or some such thing, is this correct?
Thanks, Robin. I thought it'd be strange not to have that in there somehow.
Rick
···
----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, June 29, 2001 5:54 PM
Subject: Re: [wxPython] Now another wxToolTip question
> Am I right in assuming that there is no way to "globally"
> enable and disable ToolTips?
No. The methods are static in C++ so the are wxToolTip_Enable and
wxToolTip_Disable in Python.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
I've tried self.wxToolTip_Disable(), wxToolTip_Disable(self) and
wxToolTip.wxToolTip_Disable() says it doesn't exist.
def OnTTclick(self,event):
wxToolTip_Disable()
What is it I'm not doing right?
Thanks,
Rick
···
----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, June 29, 2001 5:54 PM
Subject: Re: [wxPython] Now another wxToolTip question
> Am I right in assuming that there is no way to "globally"
> enable and disable ToolTips?
No. The methods are static in C++ so the are wxToolTip_Enable and
wxToolTip_Disable in Python.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
I just ran a search on wxPython and discovered wxToolTip_Disable doesn't
exist but wxToolTip_Enable does.
I used:
def OnTTclick(self,event):
wxToolTip_Enable(FALSE)
and it worked like a charm.
Thanks for the nudge in the right direction.
Rick
···
----- Original Message -----
From: "Richard Jones" <rjones33410@yahoo.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, June 29, 2001 7:30 PM
Subject: Re: [wxPython] Now another wxToolTip question
I give, how is this supposed to get called?
I've tried self.wxToolTip_Disable(), wxToolTip_Disable(self) and
wxToolTip.wxToolTip_Disable() says it doesn't exist.
def OnTTclick(self,event):
wxToolTip_Disable()
What is it I'm not doing right?
Thanks,
Rick
----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, June 29, 2001 5:54 PM
Subject: Re: [wxPython] Now another wxToolTip question
> > Am I right in assuming that there is no way to "globally"
> > enable and disable ToolTips?
>
> No. The methods are static in C++ so the are wxToolTip_Enable and
> wxToolTip_Disable in Python.
>
> --
> Robin Dunn
> Software Craftsman
> robin@AllDunn.com Java give you jitters?
> http://wxPython.org Relax with wxPython!
>
>
>
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwindows.org
> http://lists.wxwindows.org/mailman/listinfo/wxpython-users
Looking at the wxWindows help -- it's wxToolTip.Enable(false)
···
I give, how is this supposed to get called?
I've tried self.wxToolTip_Disable(), wxToolTip_Disable(self) and
wxToolTip.wxToolTip_Disable() says it doesn't exist.