Hello all!
I am using a wx.textctrl widget to display some urls. I want the url to open in a browser when the user clicks on the links. I read that implementing wx.TE_RICH and wx.TE_AUTO_URL would let me achieve this (click-able urls). I also binded the widget instance to an event, as follows:
>>OutputText=wx.TextCtrl(panel ,pos =(10,10),size=(700,300), style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_RICH|wx.TE_AUTO_URL)
>>OutputText.Bind(wx.EVT_TEXT_URL,self.openurl)
Now, what happens is, if even the mouseover happens, this event is triggered. I mean, if one just brings the cursor on the url, the event is called, instead of triggering when actual 'click' happens.
I am sure my implementation of the wx.EVT_TEXT_URL maybe the fault. Hence my question...where am I possibly wrong? What do I change to set it right?
Thanks in advance!
Regards,
Udgam Mehetre