I have seen the following problems with ToolTips on wxPython (2.8.6.1, python 2.5):
1. ToolTips are displayed OK in the development environment. When I build a run-time program with py2exe, there are no tool tips. Weird.
2. ToolTip.Enable() does not do anything in either the run-time or development environment. Whether or not I call this function, no matter what its argument is, the tool tips are always displayed in the development environment and never displayed in the run-time.
I am setting the tool tips using the function SetToolTipString(), called on each individual widgets. As an experiment I created a ToolTipObject and attached it to widget with the SetToolTip function. This made no difference; it worked OK in the development environment but not in runtime.
Any ideas or suggestions?
Paul Cornelius
Paul,
From: Paul Cornelius [mailto:paul.cornelius@vuemetrix.com]
Sent: Tuesday, November 20, 2007 6:05 PM
To: wxpython-users@lists.wxwidgets.org
Subject: Tool Tip problems
I have seen the following problems with ToolTips on wxPython
(2.8.6.1, python 2.5):
1. ToolTips are displayed OK in the development environment.
When I build a run-time program with py2exe, there are no
tool tips. Weird.
2. ToolTip.Enable() does not do anything in either the
run-time or development environment. Whether or not I call
this function, no matter what its argument is, the tool tips
are always displayed in the development environment and never
displayed in the run-time.
I am setting the tool tips using the function
SetToolTipString(), called on each individual widgets. As an
experiment I created a ToolTipObject and attached it to
widget with the SetToolTip function. This made no
difference; it worked OK in the development environment but
not in runtime.
Any ideas or suggestions?
Paul Cornelius
When I set a tooltip for a textctrl or a button, I do the following:
tooltip_text = 'yada yada'
someWidget.SetToolTip(wx.ToolTip(tooltip_text))
This works both in my development code and in the executable I create
using Andrea Gavana's GUI2Exe (a gui interface to py2exe). Hope this helps
somehow.
Mike
···
-----Original Message-----
I'm not using manifests. But I suspect you are on the right track, since I just noticed that the tool tips appear on a couple of other XP machines when I deploy the app there. It's my computer where the run-time and development behavior is different. So all I have to do is to perform the moderately Herculean task of figuring out what's different between those machines and mine.
Robin Dunn wrote:
···
Paul Cornelius wrote:
I have seen the following problems with ToolTips on wxPython (2.8.6.1, python 2.5):
1. ToolTips are displayed OK in the development environment. When I build a run-time program with py2exe, there are no tool tips. Weird.
I'm not sure this would have that kind of effect but are you attaching the manifest resource to the .exe so Windows will use the newest themed controls DLL?