radio-button

Can't make Radiobuttons pre-selected with tkinter

Can't make Radiobuttons pre-selected with tkinter Question: sadly I didn’t found any solution to my problem I realy hope U guys can maybe help me. I have a main.py and, for test purposes, a test.py. In the main I only create the window for my programm and the widgets come from the test.py, the thing …

Total answers: 1

python tkinter getting text value from selected radiobutton

python tkinter getting text value from selected radiobutton Question: I have a radiobuttons, for user to select. On each selection it gives to Entry widget some text. Now, I want to get the text value from the radiobutton which is selected. As I remember checkboxes have true or false values, but I used radio buttons …

Total answers: 1

Can't get the value of a radio-button in Python/Tkinter

Can't get the value of a radio-button in Python/Tkinter Question: I’m writing a simple unit converter where the user can pick which units they want to convert from two options. I’m using radio-buttons for the choice, but can’t seem to get the value of the chosen one to work in the conditions at the bottom …

Total answers: 2

tkinter radiobutton is not giving a return

tkinter radiobutton is not giving a return Question: I’m wondering why my radiobutton variable is not returning a value. Kindly see my setup below : Global declarations of the frame, radiobuttons, template variable and ‘Download’ button. I placed my radiobuttons in a frame. I commented the set() function here. root = tk.Tk() frm_radioButtons = tk.Frame(root) …

Total answers: 1

Why is there a dash in ttk radio button when made with a function?

Why is there a dash in ttk radio button when made with a function? Question: When I make two sets of the same radio buttons there will be a dash in one of the buttons created from a function. import tkinter as tk from tkinter import ttk def add_radio_buttons(): a_b = tk.StringVar() a_button = ttk.Radiobutton(window, …

Total answers: 1

Python, Tkinter – Enable/Disable buttons only when a radio button is selected

Python, Tkinter – Enable/Disable buttons only when a radio button is selected Question: So here’s my code root = Tk() # 1st frame frame_1 = LabelFrame(root) frame_1.pack() #var var = IntVar() var.set(0) test = [‘test1’, ‘test2’, ‘test3’, ‘test4’] # radio button radio_1 = Radiobutton(frame_1, text = test[0], value = 1, variable = var) radio_1.pack() radio_2 …

Total answers: 1