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

def rapid::tableplusminus::TablePlusMinus::_moveRows (   self,
  adjustment,
  startRow,
  endRow = -1 
) [private]

Moves gtk.Table rows up or down according to adjustment (which MUST be -1 or 1).

Starts at row startRow and ends at row endRow.  If endRow == -1, then goes to last row in table.
Readjusts callbacks.

Definition at line 132 of file tableplusminus.py.

00132                                                           :
        """
        Moves gtk.Table rows up or down according to adjustment (which MUST be -1 or 1).

        Starts at row startRow and ends at row endRow.  If endRow == -1, then goes to last row in table.
        Readjusts callbacks.
        """
        if endRow == -1:
            endRow = len(self.pm_rows)
        for r in range(startRow, endRow):
            if self.debug:
                print "Row %s becomes row %s" % (self.pm_rows[r][self.pm_noColumns + 2].get_label(), r + adjustment)
                self.pm_rows[r][self.pm_noColumns + 2].set_label(str(r + adjustment))

            for col in range(self.pm_noColumns + self.extraCols):
                widget = self.pm_rows[r][col]
                if widget:
                    self.remove(widget)
                    widget.disconnect(self.pm_callbacks[widget])
                    self.attach(widget, col, col+1, r + adjustment, r  + adjustment + 1)
                    if col == self.pm_noColumns:
                        self._createCallback(widget, r + adjustment, 'clicked', self.on_minus_button_clicked)
                    elif col == self.pm_noColumns + 1:
                        self._createCallback(widget, r + adjustment, 'clicked', self.on_plus_button_clicked)
                    else:
                        self._createCallback(widget, r + adjustment)


    def _printDebugInfo(self):


Generated by  Doxygen 1.6.0   Back to index