RADIO BUTTON IN PYTHON TKINTER|CODEJAL|

Published: 03 May 2024
on channel: codejal
3
0

from tkinter import *
window=Tk()
x=IntVar()
def fot():
if(x.get()==0):
print("You got apple")
elif(x.get()==1):
print("You got orange")
elif(x.get()==2):
print("pizza")
else:
print("Nth")
food=['apple','orange','pizza']
for i in range(len(food)):
radio=Radiobutton(window,text=food[i],variable=x,value=i,command=fot)
radio.pack()
window.mainloop()


On this page of the site you can watch the video online RADIO BUTTON IN PYTHON TKINTER|CODEJAL| with a duration of hours minute second in good quality, which was uploaded by the user codejal 03 May 2024, share the link with friends and acquaintances, this video has already been watched 3 times on youtube and it was liked by 0 viewers. Enjoy your viewing!