PEATDB/DNAtool/DNA_sequencing.py
def change_seq_direction(self,event=None):
        """Sets forward or reverse sense for entry based on single/double-click"""
        #pop up dialog box here first time this entry is selected
        #sel=self.details.curselection()
        items = map(int, self.details.curselection())
        num=items[0]
        name=self.seq_list[num]
        if self.seq_list_direction[name]=='f':
            self.details.itemconfig(num,fg='red')
            self.seq_list_direction[name]=='r'
        else:
            self.details.itemconfig(num,fg='black')
            self.seq_list_direction[name]=='f'
        return
Sets forward or reverse sense for entry based on single/double-click
Sets forward or reverse sense for entry based on single/double-click
Sets forward or reverse sense for entry based on single / double - click
def change_seq_direction(self,event=None):
        items = map(int, self.details.curselection())
        num=items[0]
        name=self.seq_list[num]
        if self.seq_list_direction[name]=='f':
            self.details.itemconfig(num,fg='red')
            self.seq_list_direction[name]=='r'
        else:
            self.details.itemconfig(num,fg='black')
            self.seq_list_direction[name]=='f'
        return
def change_seq_direction ( self , event = None ) : items = map ( int , self . details . curselection ( ) ) num = items [ 0 ] name = self . seq_list [ num ] if self . seq_list_direction [ name ] == 'f' : self . details . itemconfig ( num , fg = 'red' ) self . seq_list_direction [ name ] == 'r' else : self . details . itemconfig ( num , fg = 'black' ) self . seq_list_direction [ name ] == 'f' return
Sets forward or reverse sense for entry based on single/double-click
Sets forward or reverse sense for entry based on single / double - click
"""Sets forward or reverse sense for entry based on single/double-click""" #pop up dialog box here first time this entry is selected #sel=self.details.curselection()
self
event