pKaTool/pKa_system_micro2.py
def toggle_kcat_window(self):
        """Open or close the kcat window"""
        if self.kcat_window_visible.get()==0:
            self.kcat_window.destroy()
        else:
            self.init_kcat_array()
            self.kcat_window=Toplevel()
            self.kcat_window.title('kcats for microstates')
            column=0
            for label in ['State','kcat for state']:
                Label(self.kcat_window,text=label).grid(row=0,column=column)
                column=column+1
            row=1
            for state in self.states:
                Label(self.kcat_window,text=state).grid(row=row,column=0)
                Entry(self.kcat_window,textvariable=self.kcat_microstates[state],width=5).grid(row=row,column=1)
                row=row+1
            #
            # Button for updating the plot
            #
            Button(self.kcat_window,command=self.update_pkasystem_curves,text='Update plot').grid(row=row+1,column=0)
        
        
        return
Open or close the kcat window
Open or close the kcat window
Open or close the kcat window
def toggle_kcat_window(self):
        if self.kcat_window_visible.get()==0:
            self.kcat_window.destroy()
        else:
            self.init_kcat_array()
            self.kcat_window=Toplevel()
            self.kcat_window.title('kcats for microstates')
            column=0
            for label in ['State','kcat for state']:
                Label(self.kcat_window,text=label).grid(row=0,column=column)
                column=column+1
            row=1
            for state in self.states:
                Label(self.kcat_window,text=state).grid(row=row,column=0)
                Entry(self.kcat_window,textvariable=self.kcat_microstates[state],width=5).grid(row=row,column=1)
                row=row+1
             Button for updating the plot
            Button(self.kcat_window,command=self.update_pkasystem_curves,text='Update plot').grid(row=row+1,column=0)
        return
def toggle_kcat_window ( self ) : if self . kcat_window_visible . get ( ) == 0 : self . kcat_window . destroy ( ) else : self . init_kcat_array ( ) self . kcat_window = Toplevel ( ) self . kcat_window . title ( 'kcats for microstates' ) column = 0 for label in [ 'State' , 'kcat for state' ] : Label ( self . kcat_window , text = label ) . grid ( row = 0 , column = column ) column = column + 1 row = 1 for state in self . states : Label ( self . kcat_window , text = state ) . grid ( row = row , column = 0 ) Entry ( self . kcat_window , textvariable = self . kcat_microstates [ state ] , width = 5 ) . grid ( row = row , column = 1 ) row = row + 1 Button ( self . kcat_window , command = self . update_pkasystem_curves , text = 'Update plot' ) . grid ( row = row + 1 , column = 0 ) return
Open or close the kcat window
Open or close the kcat window
"""Open or close the kcat window""" # # Button for updating the plot #
self