(self)
return
Clears all the data and makes a new table
Clears all the data and makes a new table
Clears all the data and makes a new table
def new(self):
        """Clears all the data and makes a new table"""

        mpDlg = MultipleValDialog(title='Create new table',
                                    initialvalues=(10, 4),
                                    labels=('rows','columns'),
                                    types=('int','int'),
                                    parent=self.parentframe)

        if mpDlg.result == True:
            rows = mpDlg.results[0]
            cols = mpDlg.results[1]
            model = TableModel(rows=rows,columns=cols)
            self.updateModel(model)
        return
def new ( self ) : mpDlg = MultipleValDialog ( title = 'Create new table' , initialvalues = ( 10 , 4 ) , labels = ( 'rows' , 'columns' ) , types = ( 'int' , 'int' ) , parent = self . parentframe ) if mpDlg . result == True : rows = mpDlg . results [ 0 ] cols = mpDlg . results [ 1 ] model = TableModel ( rows = rows , columns = cols ) self . updateModel ( model ) return