codes related to my course in python gui