[pygtk] pygtk weird behave in *windows only*
Giuseppe Penone
giuspen at gmail.com
Tue Jun 12 01:23:52 WST 2012
Hi,
In my app (www.giuspen.com/cherrytree) I have a textview under a menubar.
In the textbuffer there is a hyperlink to web page on the first row,
nothing else:
menu1 | menu2 | menu3...
---------------------------------
*hyperlink in textview*
--------------------------------
toolbar
On* windows only*, if I click on the hyperlink, the browser displays the
webpage
and then if I go back to the app window and click on a menu item of the
menubar (out of the textview)
the app opens new web link same as the first clicked.
going back again to the app window and clicking on a menu item of the
menubar, still same
result: open another same web page linked from the hyperlink.
the weird is that the link_clicked is called only on from a function
connected to the textview:
self.sourceview.connect("event-after", self.*on_sourceview_event_after*)
note that I'm using sourceview which inherits from textview.
I's weird that a click on the menu bar goes to the textview.
I'm searching for a workaround but don't know what to do... move the focus
away from the
textview just before opening the web page link didn't help.
Cheers,
Giuseppe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120611/44235e7e/attachment.html>
More information about the pygtk
mailing list