python GUI SYS tutorial-3 (radio button)

python GUI SYS tutorial-3 (radio button)

how to work radio button and declare the code in ide that easy solution
radio button prog:
===============
from tkinter import *
def rj():
Label(root,text=”helowwwwww”).pack()
def rj1():
Label(root,text=”i am yash”).pack()

root=Tk()
a=Radiobutton(root,value=1,text=”text1″ ,command=rj)
a.pack()
b=Radiobutton(root,value=2,text=”text2″ ,command=rj1)
b.pack()
root.mainloop()

Get Paid Taking Pictures
Share