PEATDB/Ekin/Ekin_main.py
def do_titration_stuff(self):
        """Add residue info for titration mode"""

        self.mode_widgets=[]
        self.chain_id_entry = Entry(self.modespecific_frame,
                                       background = 'yellow', width=2,relief=GROOVE,
                                       textvariable=self.chain_id)
        self.chain_id_entry.bind('<KeyRelease>', self.set_chain_id)
        self.mode_widgets.append(self.chain_id_entry)
        self.chain_id_entry.grid(row=0,column=0,pady=1,sticky='news')
        self.residue_menu = Pmw.OptionMenu(self.modespecific_frame,
                                labelpos = 'w',
                                label_text = 'Residue:',
                                menubutton_textvariable = self.residue_type,
                                items = self.residue_list,
                                menubutton_width = 10,
                                command = self.set_residue_type )
        self.residue_menu.grid(row=0,column=2)
        self.residue_menu.component('label').configure(background = '#ffffcc')
        self.mode_widgets.append(self.residue_menu)
        self.residue_num_entry = Entry(self.modespecific_frame,
                                       background = 'white', width=5,relief=GROOVE,
                                       textvariable=self.residue_num)
        self.residue_num_entry.bind('<KeyRelease>', self.set_residue_num)
        self.residue_num_entry.grid(row=0,column=3,pady=1,sticky='news')
        self.mode_widgets.append(self.residue_num_entry)
        self.atom_type_menu = Pmw.OptionMenu(self.modespecific_frame,
                                labelpos = 'w',
                                menubutton_textvariable = self.atom_type,
                                items = self.atom_types,
                                menubutton_width = 5,
                                command = self.set_atom_type )

        self.mode_widgets.append(self.atom_type_menu)
        self.atom_type_menu.grid(row=0,column=4)
        return
Add residue info for titration mode
Add residue info for titration mode
Add residue info for titration mode
def do_titration_stuff(self):
        self.mode_widgets=[]
        self.chain_id_entry = Entry(self.modespecific_frame,
                                       background = 'yellow', width=2,relief=GROOVE,
                                       textvariable=self.chain_id)
        self.chain_id_entry.bind('<KeyRelease>', self.set_chain_id)
        self.mode_widgets.append(self.chain_id_entry)
        self.chain_id_entry.grid(row=0,column=0,pady=1,sticky='news')
        self.residue_menu = Pmw.OptionMenu(self.modespecific_frame,
                                labelpos = 'w',
                                label_text = 'Residue:',
                                menubutton_textvariable = self.residue_type,
                                items = self.residue_list,
                                menubutton_width = 10,
                                command = self.set_residue_type )
        self.residue_menu.grid(row=0,column=2)
        self.residue_menu.component('label').configure(background = '#ffffcc')
        self.mode_widgets.append(self.residue_menu)
        self.residue_num_entry = Entry(self.modespecific_frame,
                                       background = 'white', width=5,relief=GROOVE,
                                       textvariable=self.residue_num)
        self.residue_num_entry.bind('<KeyRelease>', self.set_residue_num)
        self.residue_num_entry.grid(row=0,column=3,pady=1,sticky='news')
        self.mode_widgets.append(self.residue_num_entry)
        self.atom_type_menu = Pmw.OptionMenu(self.modespecific_frame,
                                labelpos = 'w',
                                menubutton_textvariable = self.atom_type,
                                items = self.atom_types,
                                menubutton_width = 5,
                                command = self.set_atom_type )
        self.mode_widgets.append(self.atom_type_menu)
        self.atom_type_menu.grid(row=0,column=4)
        return
def do_titration_stuff ( self ) : self . mode_widgets = [ ] self . chain_id_entry = Entry ( self . modespecific_frame , background = 'yellow' , width = 2 , relief = GROOVE , textvariable = self . chain_id ) self . chain_id_entry . bind ( '<KeyRelease>' , self . set_chain_id ) self . mode_widgets . append ( self . chain_id_entry ) self . chain_id_entry . grid ( row = 0 , column = 0 , pady = 1 , sticky = 'news' ) self . residue_menu = Pmw . OptionMenu ( self . modespecific_frame , labelpos = 'w' , label_text = 'Residue:' , menubutton_textvariable = self . residue_type , items = self . residue_list , menubutton_width = 10 , command = self . set_residue_type ) self . residue_menu . grid ( row = 0 , column = 2 ) self . residue_menu . component ( 'label' ) . configure ( background = '#ffffcc' ) self . mode_widgets . append ( self . residue_menu ) self . residue_num_entry = Entry ( self . modespecific_frame , background = 'white' , width = 5 , relief = GROOVE , textvariable = self . residue_num ) self . residue_num_entry . bind ( '<KeyRelease>' , self . set_residue_num ) self . residue_num_entry . grid ( row = 0 , column = 3 , pady = 1 , sticky = 'news' ) self . mode_widgets . append ( self . residue_num_entry ) self . atom_type_menu = Pmw . OptionMenu ( self . modespecific_frame , labelpos = 'w' , menubutton_textvariable = self . atom_type , items = self . atom_types , menubutton_width = 5 , command = self . set_atom_type ) self . mode_widgets . append ( self . atom_type_menu ) self . atom_type_menu . grid ( row = 0 , column = 4 ) return
Add residue info for titration mode
Add residue info for titration mode
"""Add residue info for titration mode"""
self