I want my second frame to be updated with by the drop down value I choose. Literally my values on my dropdown are dictionaries. What I want all values of each key to go into the their respective places in the second frame.
Here is my code:
from tkinter import *
from tkinter import ttk # necessary for Notebook
from tkinter import filedialog
import pandas as pd
import numpy as np
######################## GUI SETUP ###################
root =Tk()
root.title('My GUI')
root.geometry('800x600')
# Instantiating the notebook
nbook=ttk.Notebook(root)
nbook.pack(pady='25')
frame_1=Frame(nbook, width=800, height=600, bg='grey')
frame_2=Frame(nbook, width=800, height=600, bg='white')
# Frame packing
frame_1.pack(fill='both', expand=1)
frame_2.pack(fill='both', expand=1)
# Find a way to pack themall together elegeantly
nbook.add(frame_1, text="Setup")
nbook.add(frame_2, text="Overview")
### Dropdown #####
lista=['Pod1','Pod2','Pod3','Pod4']
click=StringVar()
click.set('Select Options')
options=OptionMenu(frame_1, click, *lista)
options.pack()
#### Overview tab ######
Label_1=Label(frame_2, text='Main')
Label_1.place(x=70, y=30)
Label_2=Label(frame_2, text='Second')
Label_2.place(x=350, y=30)
Label_3=Label(frame_2, text='Others')
Label_3.place(x=600,y=30)
pod1={'Main':['Strawberries','Blueberries','Raspberries'],'Second': ['Blackberries', 'Burberries'], 'Rest':None}
pod2={'Main':['Mangoes', 'Guavas'],'Second':['Coconut'],'Rest': None}
pod3={'Main':['Tiger', 'Lions'],'Second':['Leopard','Cheetah'], ,'Rest': ['Cat', 'Lynx','C']}
root.mainloop() # this must end the program