Python Forum
[Tkinter] How to create radiobutton in numpy gui python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] How to create radiobutton in numpy gui python?
#1
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?
Reply
#2
The Tkinter Radiobutton Widget
Reply
#3
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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to dynamically change radiobutton text kenwatts275 2 3,282 Mar-05-2021, 02:25 AM
Last Post: deanhystad
  Python3 tkinter radiobutton problem Nick_tkinter 14 5,829 Feb-15-2021, 11:01 PM
Last Post: Nick_tkinter
  [Tkinter] RadioButton Maryan 2 2,127 Oct-23-2020, 09:36 PM
Last Post: Maryan
  Tkinter: increasing numbers and Radiobutton issue PeroPuri 1 2,119 Apr-13-2020, 05:48 PM
Last Post: deanhystad
  [PyQt] how to deselect radiobutton in pyqt5 atlass218 3 12,588 Oct-23-2019, 03:25 PM
Last Post: Denni
  [Tkinter] Clicking a RadioButton in a for Loop & Getting the Appropriate Return Vicolas 1 5,098 Feb-02-2019, 01:53 AM
Last Post: woooee
  [Tkinter] Radiobutton in Tkinter not Updating Variable from Value Aidan54321 1 7,322 Jun-16-2017, 11:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020