Im a bit stuck!
Im new to python coding and this is my second project and Ive hit a wall.
basically Ive made a GUI with 12 radio buttons in 3 sets, (3,3,6) plus an "execute" button, plus various other scripts to execute certain GPIO outputs.
what i want is to be able to select 3 options from the GUI and when i hit the "execute" button for it to run the appropriate .py file
i have got it working to return a value from the 3 variables like so:
def sel():
X = dr1.get()
Y = dr2.get()
Z = dr3.get()
return X+Y+Z
this gives me a value for example of "appleorangebanana" or with different radio buttons selected a value of "applegrapebanana"
all possible returned values have a corresponding .py file saved with its own script.
where im getting stuck is using the returned value to run the right file when i hit the "execute" button
thanks for any help