Trapping a button click on static text

Robin Dunn robin at alldunn.com
Mon Jan 1 11:02:27 PST 2007


Baptiste wrote:
> Hello,
> 
> I am also interested by the answer.
> I have done :
> tag_list = wx.StaticText ( self, -1, i )
> tag_list.Bind ( wx.EVT_LEFT_DOWN, self.HL )   
> def HL( self, evt ):
>     print evt.GetEventObject ( )
> and when I click, I have :
>  <wx._windows.ScrolledWindow; proxy of C++ wxScrolledWindow instance at 
> _f8227808_p_wxScrolledWindow>
> Odd and not convenient, because I need this click...
> 

Platform and version?


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





More information about the wx-users mailing list