I followed the code on this link: Switch between two frames in tkinter there are two problems in the below mentioned code that I want to solve,