My app displays details for one person at a time based on a current_person_id
and other information related to that person which is stored in a database. I wanted to change the details displayed based on the order in which different persons’ details had been seen, so it would work like a browser’s back/forward button.
I found instructions here, here, and here which suggested using two stacks, one for the back button and one for the forward button. I didn’t understand these instructions so I compared them with each other and compiled a more succinct and better organized set of instructions.
It took several hours but I finally managed to get this to work in Tkinter. I will answer my question below.