PEATDB/PEATApp.py
def welcomeLogo(self):
        """Show the welcome logo and text"""

        self.removeLogo()
        self.logo=None
        import tkFont
        try:
            logo = PEAT_images.logo_large_mono()
            self.cv.create_image(self.canvas_x_size/2,self.canvas_y_size/2,image=logo)
            self.cv.image=logo
        except:
            import tkFont
            font=tkFont.Font(family='Arial',size=38)
            self.cv.create_text(self.canvas_x_size/2,self.canvas_y_size/2-50,
                                                  text='P E A T',
                                                  font=font,anchor='n',
                                                  fill='black',
                                                  tag='logo')
        text=['Welcome to Protein Engineering and Analysis Tool  (PEAT)',
              'Authors: Jens Erik Nielsen, Damien Farrell and Michael Johnston',
              'Copyright Jens Erik Nielsen, University College Dublin 2003-, All rights reserved']
        self.y=20
        self.x=380
        ifont=tkFont.Font(family='Arial',size=12)
        for line in text:
            self.cv.create_text(self.x,self.y,text=line,fill='white',font=ifont, tag='logo')
            self.y=self.y+15

        # Remove the logo after some time
        #self.wait=self.after(4000, self.show_startinstructions)
        return
Show the welcome logo and text
Show the welcome logo and text
Show the welcome logo and text
def welcomeLogo(self):
        self.removeLogo()
        self.logo=None
        import tkFont
        try:
            logo = PEAT_images.logo_large_mono()
            self.cv.create_image(self.canvas_x_size/2,self.canvas_y_size/2,image=logo)
            self.cv.image=logo
        except:
            import tkFont
            font=tkFont.Font(family='Arial',size=38)
            self.cv.create_text(self.canvas_x_size/2,self.canvas_y_size/2-50,
                                                  text='P E A T',
                                                  font=font,anchor='n',
                                                  fill='black',
                                                  tag='logo')
        text=['Welcome to Protein Engineering and Analysis Tool  (PEAT)',
              'Authors: Jens Erik Nielsen, Damien Farrell and Michael Johnston',
              'Copyright Jens Erik Nielsen, University College Dublin 2003-, All rights reserved']
        self.y=20
        self.x=380
        ifont=tkFont.Font(family='Arial',size=12)
        for line in text:
            self.cv.create_text(self.x,self.y,text=line,fill='white',font=ifont, tag='logo')
            self.y=self.y+15
        return
def welcomeLogo ( self ) : self . removeLogo ( ) self . logo = None import tkFont try : logo = PEAT_images . logo_large_mono ( ) self . cv . create_image ( self . canvas_x_size / 2 , self . canvas_y_size / 2 , image = logo ) self . cv . image = logo except : import tkFont font = tkFont . Font ( family = 'Arial' , size = 38 ) self . cv . create_text ( self . canvas_x_size / 2 , self . canvas_y_size / 2 - 50 , text = 'P E A T' , font = font , anchor = 'n' , fill = 'black' , tag = 'logo' ) text = [ 'Welcome to Protein Engineering and Analysis Tool  (PEAT)' , 'Authors: Jens Erik Nielsen, Damien Farrell and Michael Johnston' , 'Copyright Jens Erik Nielsen, University College Dublin 2003-, All rights reserved' ] self . y = 20 self . x = 380 ifont = tkFont . Font ( family = 'Arial' , size = 12 ) for line in text : self . cv . create_text ( self . x , self . y , text = line , fill = 'white' , font = ifont , tag = 'logo' ) self . y = self . y + 15 return
Show the welcome logo and text
Show the welcome logo and text
"""Show the welcome logo and text""" # Remove the logo after some time #self.wait=self.after(4000, self.show_startinstructions)
self