Python Forum

Full Version: How to create radiobutton in numpy gui python?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://ibb.co/VMFYnwP
https://ibb.co/9GgSDS8

the first link is the gui I create, how can i put radiobutton (like in the second link) to my gui script?
With tkinter you can link a radio button to a variable, like so:

Radiobutton(master, text="One", variable=v, value=1).pack(anchor=W)
Radiobutton(master, text="Two", variable=v, value=2).pack(anchor=W)