PEATDB/Ekin/Ekin_main.py
def return_data(self):
        """Return to PEAT or some parent app"""
        if self.protein and self.field:
            self.E._PEATinfo = {'record':self.protein,'column':self.field}

        #remove attribs that cannot not be saved
        tempflds = ['fitline', 'ax']
        for f in tempflds:
            del self.E.__dict__[f]
        if hasattr(self.plotframe,'Opts') and self.plotframe.Opts != None:
            import copy
            self.E.__plotopts__ = copy.deepcopy(self.plotframe.Opts.opts)
        self.E.__currentdataset__ = self.currentdataset.get()
        self.E.__displaymultiple__ = self.display_multiple.get()
        self.E.__nomultiplePlots__ = self.no_multiplePlots.get()

        self.parent.Ekinprj = self.E
        self.ekin_win.destroy()
        return
Return to PEAT or some parent app
Return to PEAT or some parent app
Return to PEAT or some parent app
def return_data(self):
        if self.protein and self.field:
            self.E._PEATinfo = {'record':self.protein,'column':self.field}
        tempflds = ['fitline', 'ax']
        for f in tempflds:
            del self.E.__dict__[f]
        if hasattr(self.plotframe,'Opts') and self.plotframe.Opts != None:
            import copy
            self.E.__plotopts__ = copy.deepcopy(self.plotframe.Opts.opts)
        self.E.__currentdataset__ = self.currentdataset.get()
        self.E.__displaymultiple__ = self.display_multiple.get()
        self.E.__nomultiplePlots__ = self.no_multiplePlots.get()
        self.parent.Ekinprj = self.E
        self.ekin_win.destroy()
        return
def return_data ( self ) : if self . protein and self . field : self . E . _PEATinfo = { 'record' : self . protein , 'column' : self . field } tempflds = [ 'fitline' , 'ax' ] for f in tempflds : del self . E . __dict__ [ f ] if hasattr ( self . plotframe , 'Opts' ) and self . plotframe . Opts != None : import copy self . E . __plotopts__ = copy . deepcopy ( self . plotframe . Opts . opts ) self . E . __currentdataset__ = self . currentdataset . get ( ) self . E . __displaymultiple__ = self . display_multiple . get ( ) self . E . __nomultiplePlots__ = self . no_multiplePlots . get ( ) self . parent . Ekinprj = self . E self . ekin_win . destroy ( ) return
Return to PEAT or some parent app
Return to PEAT or some parent app
"""Return to PEAT or some parent app""" #remove attribs that cannot not be saved
self