I have 2 frames with a set of tabs in each, the first set is a main view, the second set is options to filter and select what goes in the first set. I want the second set of tabs to change to the correct tab of options depending on the selected main tab.
This is what I have but I am not sure how to go about constantly checking it:
current_tab = main_frame_tabs.get()
if current_tab == "Upload Data":
options_frame_tabs.set("Upload Options")
elif current_tab == "View Data":
options_frame_tabs.set("View Options")
elif current_tab == "Trade Stats":
options_frame_tabs.set("Stats Options")
else:
pass
I tried a couple of setups with while loops but those are meant to end at some point and I need this to be checked continuously. I tried putting it in a function but don’t really have a good way to constantly call it.
Alexander Lovelady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.