364,111 Members | 2009 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Hyperlink in wx.Grid cell?

zipper114
P: 2
I want to put a clickable hyperlink in a wx.Grid's cell. When I click on it, I'd like to call some function (e.g.

def onCellClicked(self, event):
# Do something here to launch a browser to go to the URL...


I can't seem to find how to embed a clickable hyperlink in a grid's cell. Is this even possible?
Feb 18 '12 #1
Share this Question
Share on Google+
3 Replies


bvdet
Expert Mod 2.5K+
P: 2,509
In Tkinter you can bind an event (such as "ButtonRelease") to a callback function using widget method bind(). You would do something similar in wxPython.
Feb 18 '12 #2

zipper114
P: 2
Thanks bvdet, but it's not the binding of an event I'm interested in. I am hoping I can put a hyperlink in a grid cell and have it "just work". This certainly seems like something that should be doable, but I can't seem to find out how.
Feb 18 '12 #3

bvdet
Expert Mod 2.5K+
P: 2,509
Clicking on a cell is an event. Maybe you could create your own "custom" event.
Feb 18 '12 #4

Post your reply

Help answer this question



Didn't find the answer to your Python question?

You can also browse similar questions: Python hyperlink python wx