(self, filename=None)
return
load from a file
load from a file
load from a file
def load(self, filename=None):
        """load from a file"""

        if filename == None:
            filename = filedialog.askopenfilename(parent=self.master,
                                                      defaultextension='.table',
                                                      initialdir=os.getcwd(),
                                                      filetypes=[("pickle","*.table"),
                                                        ("All files","*.*")])
        if not os.path.exists(filename):
            print ('file does not exist')
            return
        if filename:
            self.model.load(filename)
            self.redrawTable()
        return
def load ( self , filename = None ) : if filename == None : filename = filedialog . askopenfilename ( parent = self . master , defaultextension = '.table' , initialdir = os . getcwd ( ) , filetypes = [ ( "pickle" , "*.table" ) , ( "All files" , "*.*" ) ] ) if not os . path . exists ( filename ) : print ( 'file does not exist' ) return if filename : self . model . load ( filename ) self . redrawTable ( ) return