Ghost/EM_effect.py
def select_titgrp_frompdb(self,window=None):
        """Select a titratable group from the PDB file"""
        #
        # We can do this in any window
        #
        if not window:
            window=self.seldef_win
        #
        # Make the dialog
        #
 
        titgrps=self.PI.titratable_groups.keys()
        titgrps.sort()
        self.titgroups_inPDB=[]
        for res in titgrps:
            for titgrp in self.PI.titratable_groups[res]:
                name='%s:%s' %(res,titgrp['name'])
                self.titgroups_inPDB.append(name)
        #
        yscrollbar=Scrollbar(window,orient='vertical',width=10)
        yscrollbar.grid(row=2,column=1,rowspan=5,sticky='nws')
        self.LB_groups=Listbox(window,bg='white',selectmode=BROWSE,yscrollcommand= yscrollbar.set)
        self.LB_groups.grid(row=2,column=0,rowspan=5)
        yscrollbar.config(command=self.LB_groups.yview)
        for element in self.titgroups_inPDB:
            self.LB_groups.insert(END,element)
        return
Select a titratable group from the PDB file
Select a titratable group from the PDB file
Select a titratable group from the PDB file
def select_titgrp_frompdb(self,window=None):
         We can do this in any window
        if not window:
            window=self.seldef_win
         Make the dialog
        titgrps=self.PI.titratable_groups.keys()
        titgrps.sort()
        self.titgroups_inPDB=[]
        for res in titgrps:
            for titgrp in self.PI.titratable_groups[res]:
                name='%s:%s' %(res,titgrp['name'])
                self.titgroups_inPDB.append(name)
        yscrollbar=Scrollbar(window,orient='vertical',width=10)
        yscrollbar.grid(row=2,column=1,rowspan=5,sticky='nws')
        self.LB_groups=Listbox(window,bg='white',selectmode=BROWSE,yscrollcommand= yscrollbar.set)
        self.LB_groups.grid(row=2,column=0,rowspan=5)
        yscrollbar.config(command=self.LB_groups.yview)
        for element in self.titgroups_inPDB:
            self.LB_groups.insert(END,element)
        return
def select_titgrp_frompdb ( self , window = None ) : if not window : window = self . seldef_win titgrps = self . PI . titratable_groups . keys ( ) titgrps . sort ( ) self . titgroups_inPDB = [ ] for res in titgrps : for titgrp in self . PI . titratable_groups [ res ] : name = '%s:%s' % ( res , titgrp [ 'name' ] ) self . titgroups_inPDB . append ( name ) yscrollbar = Scrollbar ( window , orient = 'vertical' , width = 10 ) yscrollbar . grid ( row = 2 , column = 1 , rowspan = 5 , sticky = 'nws' ) self . LB_groups = Listbox ( window , bg = 'white' , selectmode = BROWSE , yscrollcommand = yscrollbar . set ) self . LB_groups . grid ( row = 2 , column = 0 , rowspan = 5 ) yscrollbar . config ( command = self . LB_groups . yview ) for element in self . titgroups_inPDB : self . LB_groups . insert ( END , element ) return
Select a titratable group from the PDB file
Select a titratable group from the PDB file
"""Select a titratable group from the PDB file""" # # We can do this in any window # # # Make the dialog # #
self
window