PEATDB/DNAtool/DNAtool.py
def overview_on_off(self):
        """Turn the over view window on and off"""

        if self.overview_win:
            self.overview_button.deselect()
            self.overview_win.destroy()
            self.overview_win=None
        else:
            self.overview_button.select()
            if not self.data.has_key('AA_seqs1'):
                self.warning('No DNA sequence loaded','Load a DNA sequence first')
                self.overview_button.deselect()
                return

            # Open Canvas and draw lines
            self.overview_win=Toplevel()
            self.overview_win.geometry('300x100+400+350')
            self.overview_win.title('Open reading frames')
            self.overview_frame=Canvas(self.overview_win,bd=5,bg='white',width=300,height=150)
            self.overview_frame.xview("moveto", 0)
            self.overview_frame.yview("moveto", 0.2)
            self.overview_frame.grid(row=0,column=0)
            #
            # Draw
            #
            self.update_overview_win()
        return
Turn the over view window on and off
Turn the over view window on and off
Turn the over view window on and off
def overview_on_off(self):
        if self.overview_win:
            self.overview_button.deselect()
            self.overview_win.destroy()
            self.overview_win=None
        else:
            self.overview_button.select()
            if not self.data.has_key('AA_seqs1'):
                self.warning('No DNA sequence loaded','Load a DNA sequence first')
                self.overview_button.deselect()
                return
            self.overview_win=Toplevel()
            self.overview_win.geometry('300x100+400+350')
            self.overview_win.title('Open reading frames')
            self.overview_frame=Canvas(self.overview_win,bd=5,bg='white',width=300,height=150)
            self.overview_frame.xview("moveto", 0)
            self.overview_frame.yview("moveto", 0.2)
            self.overview_frame.grid(row=0,column=0)
             Draw
            self.update_overview_win()
        return
def overview_on_off ( self ) : if self . overview_win : self . overview_button . deselect ( ) self . overview_win . destroy ( ) self . overview_win = None else : self . overview_button . select ( ) if not self . data . has_key ( 'AA_seqs1' ) : self . warning ( 'No DNA sequence loaded' , 'Load a DNA sequence first' ) self . overview_button . deselect ( ) return self . overview_win = Toplevel ( ) self . overview_win . geometry ( '300x100+400+350' ) self . overview_win . title ( 'Open reading frames' ) self . overview_frame = Canvas ( self . overview_win , bd = 5 , bg = 'white' , width = 300 , height = 150 ) self . overview_frame . xview ( "moveto" , 0 ) self . overview_frame . yview ( "moveto" , 0.2 ) self . overview_frame . grid ( row = 0 , column = 0 ) self . update_overview_win ( ) return
Turn the over view window on and off
Turn the over view window on and off
"""Turn the over view window on and off""" # Open Canvas and draw lines # # Draw #
self