I've inherited this piece of code for a school project, and I need to attach an execute option for each of the choices.
Each of the options will execute another python script + parameters.
How can I add an "route.py -W" for the first option "route.py -Q" for the 2nd one and a "shutdown.py" for the 3rd one?
from Tkinter import *
def sel():
selection = "Component destination " + str(var.get())
label.config(text = selection)
root = Tk()
var = IntVar()
R1 = Radiobutton(root, text="Send to warehouse", variable=var, value=1, command=sel)
R1.pack( anchor = W )
R2 = Radiobutton(root, text="Send to QA", variable=var, value=2, command=sel)
R2.pack( anchor = W )
R3 = Radiobutton(root, text="Stop process", variable=var, value=3, command=sel)
R3.pack( anchor = W)
label = Label(root)
label.pack()
root.mainloop()