Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::tableplusminus::TablePlusMinus::insertAfter (   self,
  rowPosition,
  row 
)

Inserts row into the table at row following rowPosition

Definition at line 182 of file tableplusminus.py.

00182                                            :
        """
        Inserts row into the table at row following rowPosition
        """


        #is table big enough?
        self.checkTableRowsAndAdjust()

        #move (reattach) other widgets & readjust connect
        self._moveRows(1, rowPosition + 1)

        # insert row
        for col in range(self.pm_noColumns):
            widget = row[col]
            if widget:
                self._createCallback(widget, rowPosition+1)
                self.attach(widget, col, col+1, rowPosition+1, rowPosition+2)
                
        minus_button, plus_button = self._createMinusPlusButtons(rowPosition+1)

        row.append(minus_button)
        row.append(plus_button)
        self.attach(minus_button, self.pm_noColumns, self.pm_noColumns+1, rowPosition+1, rowPosition+2)
        self.attach(plus_button, self.pm_noColumns+1, self.pm_noColumns+2, rowPosition+1, rowPosition+2)

        if self.debug:
            label = gtk.Label(str(rowPosition+1))
            self.attach(label, self.pm_noColumns+2, self.pm_noColumns+3, rowPosition+1, rowPosition+2)
            row.append(label)

        
        for widget in row:
            if widget:
                widget.show()

        #adjust internal reference table

        self.pm_rows.insert(rowPosition + 1, row)

        self._setMinusButtonSensitivity()

        self._printDebugInfo()

    def checkTableRowsAndAdjust(self, noRowsToAdd=1, adjustRows=True):


Generated by  Doxygen 1.6.0   Back to index