hej,
jestem totalnym beginerem i nie moge poradzic sobie z przekazaniem wybranej textowej wartosci do z Radiobuttonow do tabeli user_list
def submit():
conn = sqlite3.connect("user_list.db")
c = conn.cursor()
c.execute("INSERT INTO user_wyniki VALUES ( :sport)",
{
'sport': my_Label_radio.get(),
} )
varr = StringVar()
varr.set("motor")
def clicked(value):
my_Label_radio = Label(root2, text=value)
Radiobutton(root2, text="bieganie", variable=varr, value="bieganie", command=clicked(varr.get())).place(x=140, y=150, height=28, width=100)
Radiobutton(root2, text="pływanie", variable=varr, value="pływanie", command=clicked(varr.get())).place(x=230, y=150, height=28, width=100)
Radiobutton(root2, text="rower", variable=varr, value="rower", command=clicked(varr.get()))).place(x=320, y=150, height=28, width=100)
Radiobutton(root2, text="motor", variable=varr, value="motor", command=clicked(varr.get())).place(x=410, y=150, height=28, width=100)