Il Fri, 08 Sep 2006 02:32:41 +0200, Amaury Forgeot d'Arc ha scritto:
> I quick Google search found the following thread:
>
> http://lists.wxwidgets.org/archive/wx-users/msg31855.html
> or
> http://lists.wxwidgets.org/archive/wx-users/msg31983.html
>
> It suggest that you use another kind of cont
Il Fri, 08 Sep 2006 10:24:52 +1000, John McMonagle ha scritto:
> If you want to create static text that responds to mouse events, try
> using the wx.lib.stattext.GenStaticText class.
>
> Add the following import:
>
> import wx.lib.stattext
>
> Then,
>
> self.st = wx.lib.stattext.GenStaticTex
> Hovering mouse over the StaticText Control should generate an
> EVT_ENTER_WINDOW event like the TextCtrl Control, but it does not happen.
>
> How can I make the StaticText event working?
>
According to the book "wxPython In Action", page 186:
"One feature that you cannot see from just the fi
David a écrit :
> Plaese look at this simple class.
(...code...)
> Hovering mouse over the StaticText Control should generate an
> EVT_ENTER_WINDOW event like the TextCtrl Control, but it does not happen.
>
> How can I make the StaticText event working?
I quick Google search found the following t
Plaese look at this simple class.
import wx
class MyFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, "Hide test", size=(160,160))
# create widgets
self.pnl = wx.Panel(self)
self.st = wx.StaticText(self.p