Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/o/p/openerp-client-5.0.0-3/bin/SpiffGtkWidgets/Calendar/CanvasGrid.py   openerp-client(Download)
    def _add_line(self, length):
        rows, cols = self.get_size()
        for colnum in range(length):
            self.set_column_expand(colnum, True)
            self.add(self._new_cell(), colnum, colnum + 1, rows, rows + 1)
        self.set_row_expand(rows, True)
 
 
    def _add_column(self):
        rows, cols = self.get_size()
    def set_size(self, rows, cols):
        old_rows, old_cols = self.get_size()
 
        # Create new cells if the new size is bigger.
        if cols > old_cols:

src/s/p/SpiffGtkWidgets-0.2.0/src/SpiffGtkWidgets/Calendar/CanvasGrid.py   SpiffGtkWidgets(Download)
    def _add_line(self, length):
        rows, cols = self.get_size()
        for colnum in range(length):
            self.set_column_expand(colnum, True)
            self.add(self._new_cell(), colnum, colnum + 1, rows, rows + 1)
        self.set_row_expand(rows, True)
 
 
    def _add_column(self):
        rows, cols = self.get_size()
    def set_size(self, rows, cols):
        old_rows, old_cols = self.get_size()
 
        # Create new cells if the new size is bigger.
        if rows > old_rows: