Display tooltip on a disabled button

Is there a way to display a tooltip on a disabled button? I am doing this:

btn.SetToolTip(wx.ToolTip("My hovercraft is full of eels'))

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

I didn’t like how ToolTip worked, SuperToolTip was the easiest to get working for me, though it doesn’t look exactly ‘native’. If you use it, make sure to manually indent like 319 in the source file, according to this bug report I made a few months back:

http://trac.wxwidgets.org/ticket/16421

···

On Monday, February 9, 2015 at 1:40:56 PM UTC-8, Larry....@gmail.com wrote:

Is there a way to display a tooltip on a disabled button? I am doing this:

btn.SetToolTip(wx.ToolTip("My hovercraft is full of eels’))

When the button is enable the tooltip is shown, but I would also like

to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

Does it display on a disabled button?

···

On Monday, February 9, 2015, Nathan McCorkle nmz787@gmail.com wrote:

On Monday, February 9, 2015 at 1:40:56 PM UTC-8, Larry....@gmail.com wrote:

Is there a way to display a tooltip on a disabled button? I am doing this:

btn.SetToolTip(wx.ToolTip("My hovercraft is full of eels’))

When the button is enable the tooltip is shown, but I would also like

to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

I didn’t like how ToolTip worked, SuperToolTip was the easiest to get working for me, though it doesn’t look exactly ‘native’. If you use it, make sure to manually indent like 319 in the source file, according to this bug report I made a few months back:

http://trac.wxwidgets.org/ticket/16421

Here (debian sid) with 2.8, it's working on a disabled stock button.

···

On Mon, 9 Feb 2015 16:40:53 -0500 Larry Martell <larry.martell@gmail.com> wrote:

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

That's very odd that I have a different behaviour. I assume you're
disabling the button with btn.Enable(False) ?

···

On Mon, Feb 9, 2015 at 8:42 PM, Bzzzz <lazyvirus@gmx.com> wrote:

On Mon, 9 Feb 2015 16:40:53 -0500 > Larry Martell <larry.martell@gmail.com> wrote:

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

Here (debian sid) with 2.8, it's working on a disabled stock button.

Maybe platform specific?

Werner

···

On 2/10/2015 15:32, Larry Martell wrote:

On Mon, Feb 9, 2015 at 8:42 PM, Bzzzz <lazyvirus@gmx.com> wrote:

On Mon, 9 Feb 2015 16:40:53 -0500 >> Larry Martell <larry.martell@gmail.com> wrote:

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

Here (debian sid) with 2.8, it's working on a disabled stock button.

That's very odd that I have a different behaviour. I assume you're
disabling the button with btn.Enable(False) ?

I am on CentOS 5.8

···

On Tue, Feb 10, 2015 at 9:55 AM, Werner <wernerfbd@gmx.ch> wrote:

On 2/10/2015 15:32, Larry Martell wrote:

On Mon, Feb 9, 2015 at 8:42 PM, Bzzzz <lazyvirus@gmx.com> wrote:

On Mon, 9 Feb 2015 16:40:53 -0500 >>> Larry Martell <larry.martell@gmail.com> wrote:

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

Here (debian sid) with 2.8, it's working on a disabled stock button.

That's very odd that I have a different behaviour. I assume you're
disabling the button with btn.Enable(False) ?

Maybe platform specific?

Could it be the GTK version you use?

Just tried on Windows 8 with wxPython-Phoenix and tooltips are not shown on stock button if it is disabled.

Werner

···

On 2/10/2015 15:59, Larry Martell wrote:

On Tue, Feb 10, 2015 at 9:55 AM, Werner <wernerfbd@gmx.ch> wrote:

On 2/10/2015 15:32, Larry Martell wrote:

On Mon, Feb 9, 2015 at 8:42 PM, Bzzzz <lazyvirus@gmx.com> wrote:

On Mon, 9 Feb 2015 16:40:53 -0500 >>>> Larry Martell <larry.martell@gmail.com> wrote:

When the button is enable the tooltip is shown, but I would also like
to have to shown when the button is disabled. Is that possible.

This is on wx version 2.8.

Here (debian sid) with 2.8, it's working on a disabled stock button.

That's very odd that I have a different behaviour. I assume you're
disabling the button with btn.Enable(False) ?

Maybe platform specific?

I am on CentOS 5.8