wxToolTip

Sorry I ask here before searching the list archives but I couldn't find
them. It looks like the link "Search archive" is broken in
http://www.wxpython.org

Why isn't the method Enable() implemented for the wxToolTip ???

Raul

Raúl Cota wrote:

Why isn't the method Enable() implemented for the wxToolTip ???

You mean wxToolTip_Enable()? Since wxToolTip::Enable is a "static" method (a.k.a class method) in C++ then it is mapped to wxToolTip_Enable in wxPython.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

What's wrong with this code then??

from wxPython.wx import *

if __name__ == '__main__':
    import sys
    app = wxPySimpleApp()
    frame = wxFrame(None, -1, 'hola')
    frame.SetToolTip(wxToolTip('tool tip'))
    tip = frame.GetToolTip()
    tip.wxToolTip_Enable()
    frame.Centre(wxBOTH)
    frame.Show(true)
    app.MainLoop()

I get an error telling me that wxToolTipPtr instance has no attribute
wxToolTip_Enable.
(I also tried frame.wxToolTip_Enable() and didn't work either)

I use win NT, wxPythonWIN32-2.3.3.1u-Py22.exe

Thanks

Raul

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Saturday, November 09, 2002 12:43 AM
Subject: Re: [wxPython-users] wxToolTip

Raúl Cota wrote:

Why isn't the method Enable() implemented for the wxToolTip ???

You mean wxToolTip_Enable()? Since wxToolTip::Enable is a "static"
method (a.k.a class method) in C++ then it is mapped to wxToolTip_Enable
in wxPython.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

This works for me:

if name == ‘main’:
import sys
from wxPython.wx import *
app = wxPySimpleApp()
frame = wxFrame(None, -1, ‘hola’)
frame.SetToolTip(wxToolTip(‘tool tip’))
tip = frame.GetToolTip()
#~ tip.wxToolTip_Enable()
frame.Centre(wxBOTH)
frame.Show(true)
app.MainLoop()

Chris.

Can’t say I know anything about enabling tool tips, but they seem to be there without my help

···

----- Original Message -----
From: Raúl Cota

To: wxPython-users@lists.wxwindows.org

Sent: Wednesday, November 13, 2002 3:16 PM

Subject: Re: [wxPython-users] wxToolTip

What’s wrong with this code then??

from wxPython.wx import *

if name == ‘main’:
import sys
app = wxPySimpleApp()
frame = wxFrame(None, -1, ‘hola’)
frame.SetToolTip(wxToolTip(‘tool tip’))
tip = frame.GetToolTip()
tip.wxToolTip_Enable()
frame.Centre(wxBOTH)
frame.Show(true)
app.MainLoop()

I get an error telling me that wxToolTipPtr instance has no attribute
wxToolTip_Enable.
(I also tried frame.wxToolTip_Enable() and didn’t work either)

I use win NT, wxPythonWIN32-2.3.3.1u-Py22.exe

Thanks

Raul

----- Original Message -----
From: “Robin Dunn” robin@alldunn.com
To: wxPython-users@lists.wxwindows.org
Sent: Saturday, November 09, 2002 12:43 AM
Subject: Re: [wxPython-users] wxToolTip

Raúl Cota wrote:

Why isn’t the method Enable() implemented for the wxToolTip ???

You mean wxToolTip_Enable()? Since wxToolTip::Enable is a “static”
method (a.k.a class method) in C++ then it is mapped to wxToolTip_Enable
in wxPython.


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

You want to use "wxToolTip_Enable()", not "tip.wxToolTip_Enable()". This is
a function, not a method of tip.

regards,

-tim

···

What's wrong with this code then??

from wxPython.wx import *

if __name__ == '__main__':
    import sys
    app = wxPySimpleApp()
    frame = wxFrame(None, -1, 'hola')
    frame.SetToolTip(wxToolTip('tool tip'))
    tip = frame.GetToolTip()
    tip.wxToolTip_Enable()
    frame.Centre(wxBOTH)
    frame.Show(true)
    app.MainLoop()

I get an error telling me that wxToolTipPtr instance has no attribute
wxToolTip_Enable.
(I also tried frame.wxToolTip_Enable() and didn't work either)

I use win NT, wxPythonWIN32-2.3.3.1u-Py22.exe

Thanks

Raul

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Saturday, November 09, 2002 12:43 AM
Subject: Re: [wxPython-users] wxToolTip

Raúl Cota wrote:
>
> Why isn't the method Enable() implemented for the wxToolTip ???
>

You mean wxToolTip_Enable()? Since wxToolTip::Enable is a "static"
method (a.k.a class method) in C++ then it is mapped to wxToolTip_Enable
in wxPython.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org