(self, num=None)
return
Add new rows
Add new rows
Add new rows
def addRows(self, num=None):
        """Add new rows"""

        if num == None:
            num = simpledialog.askinteger("Now many rows?",
                                            "Number of rows:",initialvalue=1,
                                             parent=self.parentframe)
        if not num:
            return
        keys = self.model.autoAddRows(num)
        self.redrawTable()
        self.setSelectedRow(self.model.getRecordIndex(keys[0]))
        return
def addRows ( self , num = None ) : if num == None : num = simpledialog . askinteger ( "Now many rows?" , "Number of rows:" , initialvalue = 1 , parent = self . parentframe ) if not num : return keys = self . model . autoAddRows ( num ) self . redrawTable ( ) self . setSelectedRow ( self . model . getRecordIndex ( keys [ 0 ] ) ) return