Questions tagged [tkinter.checkbutton]
69 questions
0
votes
1 answer
Cant check multiple Checkbuttons in a tkinter frame
I am trying to code a self writing DnD character sheet, on this character sheet I have multiple buttons within frames something like this:
from tkinter import *
root = Tk()
root.title("Character Sheet")
var= IntVar()
pro_bonus=…
0
votes
0 answers
tkinter canvas - checkbutton list is incomplete
when building a checkbutton list (3,000 cases) the list is cut off.
Here is a small sample:
import tkinter as tk
class Example(tk.Frame):
def __init__(self, parent):
tk.Frame.__init__(self, parent)
self.canvas = tk.Canvas(self,…

Eddi
- 1
0
votes
1 answer
Why do my ttk.Checkbuttons display blocked out by default?
Good day.
I am attempting to create an options selection menu for a school assignment.
I am using the Python 3.7.2 Themed Tkinter library in order to display this program properly. However, I am having some issues getting my ttk.Checkbutton()…

Elliott Evans
- 3
- 3
0
votes
1 answer
How to get text values from multiple Tkinter CheckButtons with Python
I'm trying to figure out how to get the text values from all of the Checkbuttons that have been selected when the user clicks the Submit button.So far I am able to get the index numbers for the buttons that have been selected but cant get the text…

tibaH_lluN
- 35
- 7
0
votes
1 answer
tkinter checkbutton not displaying correct value when class imported from other file
I have a main program which does some cool stuff and I am currently setting up a 'settings editor' to let the user change some GUI related stuff and default values. It reads values from a text file, which is read in correctly and saves them to a…

Atd
- 21
- 4
0
votes
1 answer
draw a line between 2 checkbuttons chosen with mouse click in python
I have a code to paste checkbuttons in a canvas. They also change colors if clicked. If I click another checkbutton that is set up from the beginning, I want to be able to draw a line between 2 checkbuttons I select with the mouse click. Also I need…

fernando
- 89
- 1
- 15
0
votes
1 answer
How to stop tkinter OptionMenu that contains checkbutton from closing when an item is checked
I have an OptionMenu widget what I added some checkbuttons. It keeps closing when an item is check and I want it to stop doing this here's the code
drop1=OptionMenu(frame2, variable=clicked1,value="Options :")
other_variables={}
for o in…

Casper Josiah
- 31
- 6
0
votes
2 answers
Select and plot lists through checkbuttons (python, tkinter)
Say I got a multidimensional list:
my_list = [[1,2,3,4,5], [2,3,4,5,6], [3,4,5,6,7]]
Now I want to create a GUI with Tkinter where one could check boxes to select which of these sub-lists should be plotted in a histogram. So for this example I…

Jailbone
- 167
- 1
- 9
0
votes
3 answers
Getting text of a checkbutton from the variable in tkinter
I am creating the checkbuttons here:
var = []
k=0
for i in results:
var.append(IntVar())
Checkbutton(frame, text = i[0], variable = var[k], wraplength=500).pack()
k+=1
Here, I have obtained the variable for each check button and want to…

Lee Yerin
- 37
- 4
0
votes
0 answers
Newbie problem with using tkinter checkbutton in a class
Running python 3.8 in PyCharm
I'm trying to create a class to allow creation of a tkinter checkbutton (and eventually other widgets) that will hold all the formatting and definition for the widget. I would like to be able to test the state of the…

CapJack1234
- 1
- 3
0
votes
1 answer
Matplotlib - creating a graph with a CheckButton legend for an indefinite amount of plots
I know how to create a legend for a graph which is a series of CheckButtons using the method found here:
https://matplotlib.org/3.1.1/gallery/widgets/check_buttons.html
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets…

JPM_mggt
- 1
0
votes
1 answer
Tkinter Checkbutton questions
I want to build a user interface like this:
the code is:
for ii in range(len(solutions)):
tk.Label(text=solutions[ii], bg="lightsalmon", fg="black", font=("times", 10), relief=tk.RIDGE, width=50, anchor="w").grid(row=ii+1,column=3, ipadx=0, ipady=0,…

Yawen
- 19
- 6
0
votes
0 answers
Tkinter Checkbutton with flat checkbox
Basically what I want to have is a Checkbutton where the relief of the box sourrounding the check mark (or easier the indicator) is not sunken but rather flat. As an example of how it should look like: Take a look at the checkbuttons in (Windows-)…

Nummer_42O
- 334
- 2
- 16
0
votes
1 answer
Save changed textbutton state back to dictionary value list index 0
Good Day.
I have managed to load a dictionary from a text file with this code:
def loadDictFile(data_folder):
critDict = json.loads(open(data_folder+'critDict3.txt').read())
print('json_data is', critDict)
return critDict
And I can…

lor
- 53
- 6
0
votes
0 answers
check button is not connected on my quantity entry on tkinter
So, this is my code. I want this to be connected to my quantity entry but it's not working. Whenever I check the button the quantity entry is still disabled.
Pizza = Checkbutton(root,variable=var12,onvalue = 1,offvalue=0, bg="powder…

rgsummer
- 11
- 2