I'm trying to remove a tooltip from a control. SetTooltip(None) and SetTooltipString(None) cause an error. SetTooltipString('') leaves the old one. Anyone know how to do this?
SetTooltip(None) and SetTooltipString(None) cause an error.
SetTooltipString('') leaves the old one. Anyone know how to
do this?
It may be a workaround to set the tooltip to ' ' which will,
at least, give you an "empty" tooltip.
Karsten
···
On Sat, Jan 17, 2009 at 05:47:36PM -0800, $P!D3R DelSol wrote:
I'm trying to remove a tooltip from a control.
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
Hi,
widgetXY.GetToolTip().Enable(False)
seems to work, supposing the tooltip is actually set for the widget,
otherwise a test would be needed
if widgetXY.GetToolTip():
widgetXY.GetToolTip().Enable(False)
hth
vbr
···
2009/1/18 $P!D3R DelSol <sunsp1der@yahoo.com>:
I'm trying to remove a tooltip from a control. SetTooltip(None) and SetTooltipString(None) cause an error. SetTooltipString('') leaves the old one. Anyone know how to do this?
$P!D3R DelSol wrote:
I'm trying to remove a tooltip from a control. SetTooltip(None) and SetTooltipString(None) cause an error. SetTooltipString('') leaves the old one. Anyone know how to do this?
Looking at the code it seems that SetTooltip(None) should be working and is the right way to do it. What error do you get if you use this approach?
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
$P!D3R DelSol wrote:
I’m trying to remove a tooltip from a
control. SetTooltip(None) and SetTooltipString(None) cause an error.
SetTooltipString(‘’) leaves the old one. Anyone know how to do this?
Looking
at the code it seems that SetTooltip(None) should be working and is the
right way to do it. What error do you get if you use this approach?
Sorry… SetTooltipString(None) causes an error. SetTooltipString(“”) and SetToolTip(None) leave the old tooltip attached (it was created using SetTooltipString)