Python Forum
[Tkinter] How to create radiobutton in numpy gui python? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Tkinter] How to create radiobutton in numpy gui python? (/thread-26969.html)



How to create radiobutton in numpy gui python? - luthfidali - May-20-2020

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?


RE: How to create radiobutton in numpy gui python? - Yoriz - May-20-2020

The Tkinter Radiobutton Widget


RE: How to create radiobutton in numpy gui python? - timo - May-23-2020

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)