wx.ToolTip in wx.StaticText

ok!! thanks!! :):slight_smile:

andrea_gavana@tin.it ha scritto:

···

Hello NG,

It should be, because the Dabo dLabel class, which is based on wx.StaticText, can display a tool tip just fine.
   
I have tried a couple of things, this is what I found (wxPython 2.6.0.0,
Python 2.3.4, Windows 2000):

1) Using wx.StaticText, I don't get any tooltip displayed using this simple
app:

import wx

app = wx.PySimpleApp()
frame = wx.Frame(None, -1)
panel = wx.Panel(frame, -1)

txt = wx.StaticText(panel, -1, "Ciao", pos=(50,50))
txt.SetToolTip(wx.ToolTip("Ciao Ciao"))

frame.Show()

app.MainLoop()

2) Using the GenStaticText, I get the tooltip, using this app:

import wx
from wx.lib.stattext import GenStaticText as StaticText

app = wx.PySimpleApp()
frame = wx.Frame(None, -1)
panel = wx.Panel(frame, -1)

txt = StaticText(panel, -1, "Ciao", pos=(50,50))
txt.SetToolTip(wx.ToolTip("Ciao Ciao"))

frame.Show()

app.MainLoop()

I hope others get the same results as I do...

Andrea.

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