PEATDB/DNAtool/DNA_sequencing.py
def show_multiple_DNAseq_dialog(self):
        """
        This function provides a dialog to view and select the multiple loaded sequences
        """
        self.choose_seq_win=Toplevel()
        self.choose_seq_win.title("Load Multiple DNA Sequences")
        #self.choose_seq_win.geometry("%dx%d%+d%+d" % (40, 20, 0, 0))
        self.choose_seq_win.geometry("+%d+%d" % (self.parent.master_win.winfo_rootx()+550,
                                  self.parent.master_win.winfo_rooty()+100))

        OpenSeqFilesbtn=Button(self.choose_seq_win,text='Load Files',command=self.load_multiple)
        OpenSeqFilesbtn.grid(row=0,column=0,sticky='news',padx=3,pady=3)
        OpenSeqZipbtn=Button(self.choose_seq_win,text='Load Zip',command=self.load_Zip)
        OpenSeqZipbtn.grid(row=0,column=1,sticky='news',padx=3,pady=3)
        Removeitemsbtn=Button(self.choose_seq_win,text='Remove All',command=self.clear_list)
        Removeitemsbtn.grid(row=0,column=2,sticky='news',padx=3,pady=3)

        import tkFont
        detailsfont = tkFont.Font ( family="Helvetica", size=10, weight="bold" )
        yscrollbar=Scrollbar(self.choose_seq_win,orient='vertical',width=11)
        yscrollbar.grid(row=1,column=4,sticky='news',padx=2)

        self.details=Listbox(self.choose_seq_win,bg='white',
                             fg='black',
                             height=15,
                             width=40,
                             yscrollcommand=yscrollbar.set,
                             font=detailsfont,
                             selectmode=EXTENDED)

        yscrollbar.config(command=self.details.yview)
        self.details.grid(row=1,column=0,columnspan=3,sticky='NWS',padx=3,pady=3)
        self.details.config(state=NORMAL)

        Clear_CloseSeqbtn=Button(self.choose_seq_win,text='Close',command=self.close)
        Clear_CloseSeqbtn.grid(row=3,column=0,sticky='news',padx=4,pady=3)
        Clearbtn=Button(self.choose_seq_win,text='Clear Display',command=self.main_self.clear_comp_seqs)
        Clearbtn.grid(row=3,column=1,columnspan=2,sticky='news',padx=4,pady=3)

        self.seq_progressbar = ProgressBar.ProgressBar(self.choose_seq_win)
        self.seq_progressbar.frame.grid(row=4,column=1,columnspan=2,padx=2,pady=4)
        progrlbl = Label(self.choose_seq_win,text='Progress:')
        progrlbl.grid(row=4,column=0,sticky='news',padx=2,pady=4)
        self.choose_seq_win.grid_rowconfigure(1, weight=1)

        #do balloon help for buttons
        try:
            import Pmw
        except:
            import tkMessageBox
            tkMessageBox.showinfo("Missing component","To run this application you need to install Pmw (Python Megawidgets)\n or do 'Force update' to get the latest version of PEAT which includes Pmw'.")
        self.balloon=Pmw.Balloon(self.choose_seq_win)
        help=[[OpenSeqFilesbtn,'Load a sequence from a list of files'],
              [OpenSeqZipbtn,'Open from a zip file'],
              [Removeitemsbtn,'Clear list of sequences'],
              [Clear_CloseSeqbtn,'Clear sequences from the display and close dialog'],
              [Clearbtn,'Clear sequences from the display']]
        for btn,txt in help:
            self.balloon.bind(btn,txt)

        #self.details.bind("<Button-1>",self.display_current)
        self.details.bind("<ButtonRelease-1>",self.display_current)
        self.details.bind("<Double-Button-1>",self.change_seq_direction)
        return

        This function provides a dialog to view and select the multiple loaded sequences
        
This function provides a dialog to view and select the multiple loaded sequences
This function provides a dialog to view and select the multiple loaded sequences
def show_multiple_DNAseq_dialog(self):
        self.choose_seq_win=Toplevel()
        self.choose_seq_win.title("Load Multiple DNA Sequences")
        self.choose_seq_win.geometry("+%d+%d" % (self.parent.master_win.winfo_rootx()+550,
                                  self.parent.master_win.winfo_rooty()+100))
        OpenSeqFilesbtn=Button(self.choose_seq_win,text='Load Files',command=self.load_multiple)
        OpenSeqFilesbtn.grid(row=0,column=0,sticky='news',padx=3,pady=3)
        OpenSeqZipbtn=Button(self.choose_seq_win,text='Load Zip',command=self.load_Zip)
        OpenSeqZipbtn.grid(row=0,column=1,sticky='news',padx=3,pady=3)
        Removeitemsbtn=Button(self.choose_seq_win,text='Remove All',command=self.clear_list)
        Removeitemsbtn.grid(row=0,column=2,sticky='news',padx=3,pady=3)
        import tkFont
        detailsfont = tkFont.Font ( family="Helvetica", size=10, weight="bold" )
        yscrollbar=Scrollbar(self.choose_seq_win,orient='vertical',width=11)
        yscrollbar.grid(row=1,column=4,sticky='news',padx=2)
        self.details=Listbox(self.choose_seq_win,bg='white',
                             fg='black',
                             height=15,
                             width=40,
                             yscrollcommand=yscrollbar.set,
                             font=detailsfont,
                             selectmode=EXTENDED)
        yscrollbar.config(command=self.details.yview)
        self.details.grid(row=1,column=0,columnspan=3,sticky='NWS',padx=3,pady=3)
        self.details.config(state=NORMAL)
        Clear_CloseSeqbtn=Button(self.choose_seq_win,text='Close',command=self.close)
        Clear_CloseSeqbtn.grid(row=3,column=0,sticky='news',padx=4,pady=3)
        Clearbtn=Button(self.choose_seq_win,text='Clear Display',command=self.main_self.clear_comp_seqs)
        Clearbtn.grid(row=3,column=1,columnspan=2,sticky='news',padx=4,pady=3)
        self.seq_progressbar = ProgressBar.ProgressBar(self.choose_seq_win)
        self.seq_progressbar.frame.grid(row=4,column=1,columnspan=2,padx=2,pady=4)
        progrlbl = Label(self.choose_seq_win,text='Progress:')
        progrlbl.grid(row=4,column=0,sticky='news',padx=2,pady=4)
        self.choose_seq_win.grid_rowconfigure(1, weight=1)
        try:
            import Pmw
        except:
            import tkMessageBox
            tkMessageBox.showinfo("Missing component","To run this application you need to install Pmw (Python Megawidgets)\n or do 'Force update' to get the latest version of PEAT which includes Pmw'.")
        self.balloon=Pmw.Balloon(self.choose_seq_win)
        help=[[OpenSeqFilesbtn,'Load a sequence from a list of files'],
              [OpenSeqZipbtn,'Open from a zip file'],
              [Removeitemsbtn,'Clear list of sequences'],
              [Clear_CloseSeqbtn,'Clear sequences from the display and close dialog'],
              [Clearbtn,'Clear sequences from the display']]
        for btn,txt in help:
            self.balloon.bind(btn,txt)
        self.details.bind("<ButtonRelease-1>",self.display_current)
        self.details.bind("<Double-Button-1>",self.change_seq_direction)
        return
def show_multiple_DNAseq_dialog ( self ) : self . choose_seq_win = Toplevel ( ) self . choose_seq_win . title ( "Load Multiple DNA Sequences" ) self . choose_seq_win . geometry ( "+%d+%d" % ( self . parent . master_win . winfo_rootx ( ) + 550 , self . parent . master_win . winfo_rooty ( ) + 100 ) ) OpenSeqFilesbtn = Button ( self . choose_seq_win , text = 'Load Files' , command = self . load_multiple ) OpenSeqFilesbtn . grid ( row = 0 , column = 0 , sticky = 'news' , padx = 3 , pady = 3 ) OpenSeqZipbtn = Button ( self . choose_seq_win , text = 'Load Zip' , command = self . load_Zip ) OpenSeqZipbtn . grid ( row = 0 , column = 1 , sticky = 'news' , padx = 3 , pady = 3 ) Removeitemsbtn = Button ( self . choose_seq_win , text = 'Remove All' , command = self . clear_list ) Removeitemsbtn . grid ( row = 0 , column = 2 , sticky = 'news' , padx = 3 , pady = 3 ) import tkFont detailsfont = tkFont . Font ( family = "Helvetica" , size = 10 , weight = "bold" ) yscrollbar = Scrollbar ( self . choose_seq_win , orient = 'vertical' , width = 11 ) yscrollbar . grid ( row = 1 , column = 4 , sticky = 'news' , padx = 2 ) self . details = Listbox ( self . choose_seq_win , bg = 'white' , fg = 'black' , height = 15 , width = 40 , yscrollcommand = yscrollbar . set , font = detailsfont , selectmode = EXTENDED ) yscrollbar . config ( command = self . details . yview ) self . details . grid ( row = 1 , column = 0 , columnspan = 3 , sticky = 'NWS' , padx = 3 , pady = 3 ) self . details . config ( state = NORMAL ) Clear_CloseSeqbtn = Button ( self . choose_seq_win , text = 'Close' , command = self . close ) Clear_CloseSeqbtn . grid ( row = 3 , column = 0 , sticky = 'news' , padx = 4 , pady = 3 ) Clearbtn = Button ( self . choose_seq_win , text = 'Clear Display' , command = self . main_self . clear_comp_seqs ) Clearbtn . grid ( row = 3 , column = 1 , columnspan = 2 , sticky = 'news' , padx = 4 , pady = 3 ) self . seq_progressbar = ProgressBar . ProgressBar ( self . choose_seq_win ) self . seq_progressbar . frame . grid ( row = 4 , column = 1 , columnspan = 2 , padx = 2 , pady = 4 ) progrlbl = Label ( self . choose_seq_win , text = 'Progress:' ) progrlbl . grid ( row = 4 , column = 0 , sticky = 'news' , padx = 2 , pady = 4 ) self . choose_seq_win . grid_rowconfigure ( 1 , weight = 1 ) try : import Pmw except : import tkMessageBox tkMessageBox . showinfo ( "Missing component" , "To run this application you need to install Pmw (Python Megawidgets)\n or do 'Force update' to get the latest version of PEAT which includes Pmw'." ) self . balloon = Pmw . Balloon ( self . choose_seq_win ) help = [ [ OpenSeqFilesbtn , 'Load a sequence from a list of files' ] , [ OpenSeqZipbtn , 'Open from a zip file' ] , [ Removeitemsbtn , 'Clear list of sequences' ] , [ Clear_CloseSeqbtn , 'Clear sequences from the display and close dialog' ] , [ Clearbtn , 'Clear sequences from the display' ] ] for btn , txt in help : self . balloon . bind ( btn , txt ) self . details . bind ( "<ButtonRelease-1>" , self . display_current ) self . details . bind ( "<Double-Button-1>" , self . change_seq_direction ) return
This function provides a dialog to view and select the multiple loaded sequences
This function provides a dialog to view and select the multiple loaded sequences
"""
        This function provides a dialog to view and select the multiple loaded sequences
        """ #self.choose_seq_win.geometry("%dx%d%+d%+d" % (40, 20, 0, 0)) #do balloon help for buttons #self.details.bind("<Button-1>",self.display_current)
self