I am trying to make a program which could use a standard load by clicking the standload radiobutton or a variable load by clicking the variable load radiobutton. This variable load can be chosen by filling in a entry. Unfortunetely, I am not able to load the entry value directly into the value for the radiobutton. If I select the standard load it is working, but for the variable load I always obtain zero. Can someone show me what I am doing wrong? Thank you in advance!! The following code is what I have:
selectedload = tk.IntVar()
rad_standload = ttk.Radiobutton(tab1, text='Standard load (20 kN/m2)', value=pfloor, variable=selectedload)
rad_standload.grid(row=17, column=1, sticky='W')
entry_int_frload = tk.IntVar()
entry_frload = ttk.Entry(master = tab1, textvariable = entry_int_frload)
entry_frload.grid(row=17, column=3, sticky='W')
rad_standloadfr = ttk.Radiobutton(tab1, text="Distributed load [kN/m2]:", value=entry_int_frload.get(), variable=selectedload)
rad_standloadfr.grid(row=17, column=2, sticky="E")
I tried to create a function to put the .get() function in, but it is still not working. Hope that someone knows the answer.