PEATDB/Labbook.py
def handle_double_click(self, event):
        """Do double click stuff. Selected row/cols will already have
           been set with single click binding"""
        row = self.get_row_clicked(event)
        col = self.get_col_clicked(event)
        absrow = self.get_AbsoluteRow(row)
        model=self.getModel()
        coltype = model.getColumnType(col)
        cellvalue = self.model.getCellRecord(absrow, col)
        if Formula.isFormula(cellvalue):
            self.formula_Dialog(row, col, cellvalue)

        #if coltype == 'text' or coltype == 'number':
        #    self.draw_cellentry(self.currentrow, self.currentcol)
        elif coltype == 'File':
            try:
                self.view_File(self.currentrow, self.currentcol)
            except:
                pass
        elif coltype == 'Table':
            self.edit_Table(self.currentrow, self.currentcol)
        elif coltype == 'Ekin':
            self.open_Ekin(self.currentrow, self.currentcol)
        return
Do double click stuff. Selected row/cols will already have
           been set with single click binding
Do double click stuff. Selected row/cols will already have
been set with single click binding
Do double click stuff . Selected row / cols will already have been set with single click binding
def handle_double_click(self, event):
        row = self.get_row_clicked(event)
        col = self.get_col_clicked(event)
        absrow = self.get_AbsoluteRow(row)
        model=self.getModel()
        coltype = model.getColumnType(col)
        cellvalue = self.model.getCellRecord(absrow, col)
        if Formula.isFormula(cellvalue):
            self.formula_Dialog(row, col, cellvalue)
        elif coltype == 'File':
            try:
                self.view_File(self.currentrow, self.currentcol)
            except:
                pass
        elif coltype == 'Table':
            self.edit_Table(self.currentrow, self.currentcol)
        elif coltype == 'Ekin':
            self.open_Ekin(self.currentrow, self.currentcol)
        return
def handle_double_click ( self , event ) : row = self . get_row_clicked ( event ) col = self . get_col_clicked ( event ) absrow = self . get_AbsoluteRow ( row ) model = self . getModel ( ) coltype = model . getColumnType ( col ) cellvalue = self . model . getCellRecord ( absrow , col ) if Formula . isFormula ( cellvalue ) : self . formula_Dialog ( row , col , cellvalue ) elif coltype == 'File' : try : self . view_File ( self . currentrow , self . currentcol ) except : pass elif coltype == 'Table' : self . edit_Table ( self . currentrow , self . currentcol ) elif coltype == 'Ekin' : self . open_Ekin ( self . currentrow , self . currentcol ) return
Do double click stuff.
Do double click stuff .
"""Do double click stuff. Selected row/cols will already have
           been set with single click binding""" #if coltype == 'text' or coltype == 'number': #    self.draw_cellentry(self.currentrow, self.currentcol)
self
event