PEATDB/Tables.py
def check_hyperlink(self,event=None):
        """Check if a hyperlink was clicked"""
        row = self.get_row_clicked(event)
        col = self.get_col_clicked(event)
        absrow = self.get_AbsoluteRow(row)
        recdata = self.model.getValueAt(absrow, col)
        try:
            link = recdata['link']
            import webbrowser
            webbrowser.open(link,autoraise=1)
        except:
            pass
        return
Check if a hyperlink was clicked
Check if a hyperlink was clicked
Check if a hyperlink was clicked
def check_hyperlink(self,event=None):
        row = self.get_row_clicked(event)
        col = self.get_col_clicked(event)
        absrow = self.get_AbsoluteRow(row)
        recdata = self.model.getValueAt(absrow, col)
        try:
            link = recdata['link']
            import webbrowser
            webbrowser.open(link,autoraise=1)
        except:
            pass
        return
def check_hyperlink ( self , event = None ) : row = self . get_row_clicked ( event ) col = self . get_col_clicked ( event ) absrow = self . get_AbsoluteRow ( row ) recdata = self . model . getValueAt ( absrow , col ) try : link = recdata [ 'link' ] import webbrowser webbrowser . open ( link , autoraise = 1 ) except : pass return
Check if a hyperlink was clicked
Check if a hyperlink was clicked
"""Check if a hyperlink was clicked"""
self
event