Mar-31-2019, 01:29 PM
You have many things wrong.
- Change all single letter variables to meaningful names. Though not strictly required,
it's better code, and will make debugging much easier as the program grows. (r and f)
- line 6 - you have already instantiated Tk, only one allowed per tkinter script remove this one
- line 7 - frame is never used
- line 12 - function never used, and wouldn't work at any rate
- line 13 - what is pack_forget??
- line 21 - what is compound? there is no such attribute for Button widget
- line 22 - cannot use grid, place and pack in same widget choose one and use throughout
- line 23 - same as 22
- ... more apply fixes above to rest of code.