so what I am trying to do right now is, if I click one of the radio buttons, some information about the Method should automatically show in the GUI but i cant seem to get it right. I thought maybe i could get it done by using an if statement but nothing happens.
import PySimpleGUI as sg
# List for Radiobuttons
radio_choices = ["Method 1", "Method 2", "Method 3", "Method 4"]
layout = [[sg.Text("Choose Method")],
*[[sg.Radio(text, 1), ] for text in radio_choices],
[sg.Button("Start"), sg.Button("Stop"), sg.Button("Exit")]
]
window = sg.Window("Choose Method", layout, size=(350, 350))
while True:
event, values = window.Read()
if event == "Exit" or event == sg.WIN_CLOSED:
break
if event == radio_choices[0]:
sg.Text("Method 1 description")
window.close()