[PyQt] Modifying tooltip before it is shown

2010-04-24 Thread detlev
Hi, I would like to show the keyboard shortcut for a QAction in the tooltip. What would be the best way to amend the tooltip just before it is shown? Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing list

Re: [PyQt] Modifying tooltip before it is shown

2010-04-24 Thread Matt Newell
On Saturday 24 April 2010 03:53:46 detlev wrote: Hi, I would like to show the keyboard shortcut for a QAction in the tooltip. What would be the best way to amend the tooltip just before it is shown? Regards, Detlev You can intercept QWidget's ToolTip event and change the tooltip text

Re: [PyQt] Modifying tooltip before it is shown

2010-04-24 Thread detlev
On Samstag, 24. April 2010, Matt Newell wrote: On Saturday 24 April 2010 03:53:46 detlev wrote: Hi, I would like to show the keyboard shortcut for a QAction in the tooltip. What would be the best way to amend the tooltip just before it is shown? Regards, Detlev You can intercept