By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,331 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,331 IT Pros & Developers. It's quick & easy.

Hyperlink in wx.Grid cell?

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

Expert Mod 2.5K+
P: 2,851
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

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

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

Post your reply

Sign in to post your reply or Sign up for a free account.