pKaTool/pKa_system_data_manipulation.py
def send_system_to_EAT(self):
        """Get all data and send it to EAT"""
        #
        # Do we have an EAT instance?
        #
        EAT_instance=None
        if self.parent_application:
            if self.parent_application.ID=='EAT':
                EAT_instance=self.parent_application
            elif self.parent_application.ID=='Ekin':
                if self.parent_application.parent:
                    if self.parent_application.parent.ID=='EAT':
                        EAT_instance=self.parent_application.parent
        if not EAT_instance:
            import tkMessageBox
            tkMessageBox.showerror('Not called from EAT',
                                   'You have to call pKa_system from EAT or from EAT via Ekin to use this function',
                                   parent=self.window)
            return
        #
        # Get the data for the system
        #
        PSdata=self.pack_all_data()
        #
        # Add info for EAT if we have it
        #
        import copy
        if self.protein or self.field_name:
            PSdata['__EATinfo__']={'record':copy.deepcopy(self.protein),'column':copy.deepcopy(self.field_name)}
        #
        # Send the whole thing to EAT
        #
        import copy
        EAT_instance.pKa_system_data=copy.deepcopy(PSdata)
        #
        # Destroy window
        #
        if self.parent_application.ID=='EAT':
            self.window.destroy()
            self.win.destroy()
        else:
            #
            # We have to manually load data into EAT
            #
            EAT_instance.load_pKa_system_data(self.window)
        return
Get all data and send it to EAT
Get all data and send it to EAT
Get all data and send it to EAT
def send_system_to_EAT(self):
         Do we have an EAT instance?
        EAT_instance=None
        if self.parent_application:
            if self.parent_application.ID=='EAT':
                EAT_instance=self.parent_application
            elif self.parent_application.ID=='Ekin':
                if self.parent_application.parent:
                    if self.parent_application.parent.ID=='EAT':
                        EAT_instance=self.parent_application.parent
        if not EAT_instance:
            import tkMessageBox
            tkMessageBox.showerror('Not called from EAT',
                                   'You have to call pKa_system from EAT or from EAT via Ekin to use this function',
                                   parent=self.window)
            return
         Get the data for the system
        PSdata=self.pack_all_data()
         Add info for EAT if we have it
        import copy
        if self.protein or self.field_name:
            PSdata['__EATinfo__']={'record':copy.deepcopy(self.protein),'column':copy.deepcopy(self.field_name)}
         Send the whole thing to EAT
        import copy
        EAT_instance.pKa_system_data=copy.deepcopy(PSdata)
         Destroy window
        if self.parent_application.ID=='EAT':
            self.window.destroy()
            self.win.destroy()
        else:
             We have to manually load data into EAT
            EAT_instance.load_pKa_system_data(self.window)
        return
def send_system_to_EAT ( self ) : EAT_instance = None if self . parent_application : if self . parent_application . ID == 'EAT' : EAT_instance = self . parent_application elif self . parent_application . ID == 'Ekin' : if self . parent_application . parent : if self . parent_application . parent . ID == 'EAT' : EAT_instance = self . parent_application . parent if not EAT_instance : import tkMessageBox tkMessageBox . showerror ( 'Not called from EAT' , 'You have to call pKa_system from EAT or from EAT via Ekin to use this function' , parent = self . window ) return PSdata = self . pack_all_data ( ) import copy if self . protein or self . field_name : PSdata [ '__EATinfo__' ] = { 'record' : copy . deepcopy ( self . protein ) , 'column' : copy . deepcopy ( self . field_name ) } import copy EAT_instance . pKa_system_data = copy . deepcopy ( PSdata ) if self . parent_application . ID == 'EAT' : self . window . destroy ( ) self . win . destroy ( ) else : EAT_instance . load_pKa_system_data ( self . window ) return
Get all data and send it to EAT
Get all data and send it to EAT
"""Get all data and send it to EAT""" # # Do we have an EAT instance? # # # Get the data for the system # # # Add info for EAT if we have it # # # Send the whole thing to EAT # # # Destroy window # # # We have to manually load data into EAT #
self