PEATDB/DNAtool/DNA_sequencing.py
def display_current(self,event=None):
        """Display the current sequences selected in the listbox"""
       
        # Reset this if main window has been cleared while listbox open
        self.main_self.show_comp_sequence.set(1)
        self.main_self.maxseqlevel=0
        self.main_self.seqframe.delete('strip')
        # Figure out the selected seq and display in textbox
        #tmp_sel=self.details.curselection()
        tmp_sel = map(int, self.details.curselection())
        p=0 # set positions above main seq
        if len(tmp_sel)==1:
            num=tmp_sel[0]
            self.show_DNAseq(self.seq_list[num])
        else:
            # Display multiple sequences at once by creating a current list
            self.main_self.seqframe.delete('comparison_seq')
            self.current_list=[]

            max=len(tmp_sel)
            #print 'max',max
            for num in tmp_sel:
                self.current_list.append(self.seq_list[num])
                self.show_DNAseq(self.seq_list[num],clearprev=0,level=p)
                p=p+1
                #store the current highest sequence position in the parent instance
                #this is so any primer can be displayed above that
                self.main_self.maxseqlevel=p
                #print 'P=',p
                m=(p/float(max))*100
                #print 'amount done',m
                self.seq_progressbar.updateProgress(newValue=m)

            #print self.current_list
        if p>0:
            self.draw_seq_boxes(p)
        #refresh the primer if present
        if self.main_self.pDB_open:
            self.main_self.pDB_open.refresh_primer()
Display the current sequences selected in the listbox
Display the current sequences selected in the listbox
Display the current sequences selected in the listbox
def display_current(self,event=None):
        self.main_self.show_comp_sequence.set(1)
        self.main_self.maxseqlevel=0
        self.main_self.seqframe.delete('strip')
        tmp_sel = map(int, self.details.curselection())
        p=0 
        if len(tmp_sel)==1:
            num=tmp_sel[0]
            self.show_DNAseq(self.seq_list[num])
        else:
            self.main_self.seqframe.delete('comparison_seq')
            self.current_list=[]
            max=len(tmp_sel)
            for num in tmp_sel:
                self.current_list.append(self.seq_list[num])
                self.show_DNAseq(self.seq_list[num],clearprev=0,level=p)
                p=p+1
                self.main_self.maxseqlevel=p
                m=(p/float(max))*100
                self.seq_progressbar.updateProgress(newValue=m)
        if p>0:
            self.draw_seq_boxes(p)
        if self.main_self.pDB_open:
            self.main_self.pDB_open.refresh_primer()
def display_current ( self , event = None ) : self . main_self . show_comp_sequence . set ( 1 ) self . main_self . maxseqlevel = 0 self . main_self . seqframe . delete ( 'strip' ) tmp_sel = map ( int , self . details . curselection ( ) ) p = 0 if len ( tmp_sel ) == 1 : num = tmp_sel [ 0 ] self . show_DNAseq ( self . seq_list [ num ] ) else : self . main_self . seqframe . delete ( 'comparison_seq' ) self . current_list = [ ] max = len ( tmp_sel ) for num in tmp_sel : self . current_list . append ( self . seq_list [ num ] ) self . show_DNAseq ( self . seq_list [ num ] , clearprev = 0 , level = p ) p = p + 1 self . main_self . maxseqlevel = p m = ( p / float ( max ) ) * 100 self . seq_progressbar . updateProgress ( newValue = m ) if p > 0 : self . draw_seq_boxes ( p ) if self . main_self . pDB_open : self . main_self . pDB_open . refresh_primer ( )
Display the current sequences selected in the listbox
Display the current sequences selected in the listbox
"""Display the current sequences selected in the listbox""" # Reset this if main window has been cleared while listbox open # Figure out the selected seq and display in textbox #tmp_sel=self.details.curselection() # set positions above main seq # Display multiple sequences at once by creating a current list #print 'max',max #store the current highest sequence position in the parent instance #this is so any primer can be displayed above that #print 'P=',p #print 'amount done',m #print self.current_list #refresh the primer if present
self
event