pKaTool/pKa_system.py
def copy_to_Ekin(self):
        """Copy a titration curve or a population curve to the Ekin facility of EAT_DB"""
        try:
            import os,sys
            import PEATDB.Ekin
        except:
            import tkMessageBox
            tkMessageBox.showwarning('Cannot find PEAT',
                                     'Cannot find PEAT_DB\nMake sure that you download PEAT from\nhttp://enzyme.ucd.ie/PEAT')
            return
        #
        # Pick a group
        #
        self.pick_group=Toplevel()
        self.pick_group.title('Pick a group')
        self.pick_group.geometry('+200+200')
        self.group_picked=IntVar()
        count=0
        groups=self.groups.keys()
        groups.sort()
        for group in groups:
            Radiobutton(self.pick_group,text='%d:%s' %(group,self.groups[group].name.get()),
                        variable=self.group_picked,
                        value=count).grid(row=count,column=0)
            count=count+1
        self.group_picked.set(groups[0])
        Button(self.pick_group,text='Copy group',command=self.copy_group).grid(row=count,column=0)
        Button(self.pick_group,text='Cancel',command=self.cancel_copy_group).grid(row=count,column=1)
        return
Copy a titration curve or a population curve to the Ekin facility of EAT_DB
Copy a titration curve or a population curve to the Ekin facility of EAT_DB
Copy a titration curve or a population curve to the Ekin facility of EAT_DB
def copy_to_Ekin(self):
        try:
            import os,sys
            import PEATDB.Ekin
        except:
            import tkMessageBox
            tkMessageBox.showwarning('Cannot find PEAT',
                                     'Cannot find PEAT_DB\nMake sure that you download PEAT from\nhttp://enzyme.ucd.ie/PEAT')
            return
         Pick a group
        self.pick_group=Toplevel()
        self.pick_group.title('Pick a group')
        self.pick_group.geometry('+200+200')
        self.group_picked=IntVar()
        count=0
        groups=self.groups.keys()
        groups.sort()
        for group in groups:
            Radiobutton(self.pick_group,text='%d:%s' %(group,self.groups[group].name.get()),
                        variable=self.group_picked,
                        value=count).grid(row=count,column=0)
            count=count+1
        self.group_picked.set(groups[0])
        Button(self.pick_group,text='Copy group',command=self.copy_group).grid(row=count,column=0)
        Button(self.pick_group,text='Cancel',command=self.cancel_copy_group).grid(row=count,column=1)
        return
def copy_to_Ekin ( self ) : try : import os , sys import PEATDB . Ekin except : import tkMessageBox tkMessageBox . showwarning ( 'Cannot find PEAT' , 'Cannot find PEAT_DB\nMake sure that you download PEAT from\nhttp://enzyme.ucd.ie/PEAT' ) return self . pick_group = Toplevel ( ) self . pick_group . title ( 'Pick a group' ) self . pick_group . geometry ( '+200+200' ) self . group_picked = IntVar ( ) count = 0 groups = self . groups . keys ( ) groups . sort ( ) for group in groups : Radiobutton ( self . pick_group , text = '%d:%s' % ( group , self . groups [ group ] . name . get ( ) ) , variable = self . group_picked , value = count ) . grid ( row = count , column = 0 ) count = count + 1 self . group_picked . set ( groups [ 0 ] ) Button ( self . pick_group , text = 'Copy group' , command = self . copy_group ) . grid ( row = count , column = 0 ) Button ( self . pick_group , text = 'Cancel' , command = self . cancel_copy_group ) . grid ( row = count , column = 1 ) return
Copy a titration curve or a population curve to the Ekin facility of EAT_DB
Copy a titration curve or a population curve to the Ekin facility of EAT_DB
"""Copy a titration curve or a population curve to the Ekin facility of EAT_DB""" # # Pick a group #
self