예제 #1
0
 def set_home_page(self):
     """
     Clean previous pages and create home page and render it to the screen
     :return: None
     """
     self.refresh()
     body = Page(self.main_frame.frame)
     body.add_object(tk.Label,
                     text='HI welcome to Learning Log',
                     font=body.font,
                     width=50)
     body.apply()
     self.main_frame.update(body.name)
예제 #2
0
 def set_home_page(self):
     self.main_frame.clean_page()
     body = Page(self.main_frame.frame)
     body.add_object(tk.Label, text='HI welcome to Learning Log', height=20, width=25)
     body.apply()
     self.main_frame.update(body.name)