Hyperlink in wx.Grid cell?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zipper114
    New Member
    • Feb 2012
    • 2

    Hyperlink in wx.Grid cell?

    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(s elf, 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?
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    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.

    Comment

    • zipper114
      New Member
      • Feb 2012
      • 2

      #3
      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.

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        Clicking on a cell is an event. Maybe you could create your own "custom" event.

        Comment

        Working...