List of URLs. wx.richtext.RichTextCtrl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

List of URLs. wx.richtext.RichTextCtrl

ioprst0904

There is an object:

self.m_textCtrl_text = rt.RichTextCtrl(self.panel, -1, self.text, wx.DefaultPosition, (500, 100))

Periodical I insert in it hyperlinks:

urlStyle = rt.RichTextAttr()
urlStyle.SetTextColour(wx.Colour(attrs['fill']))
urlStyle.SetFontUnderlined(strToBool(attrs['underline']))

self.m_textCtrl_text.BeginStyle(urlStyle)
self.m_textCtrl_text.BeginURL(attrs['link'])
self.m_textCtrl_text.WriteText(attrs['text'])
self.m_textCtrl_text.EndURL()
self.m_textCtrl_text.EndStyle()

How to find all the hyperlinks in the text? Is it possible to implement this?

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.