Most voted "tkinter" questions
The Tkinter ("Tk interface") module is the standard Python interface for Tk GUI Toolkit. Programs written using Tkinter are freely portable between Linux, Unix, Windows and Mac.
Learn more…304 questions
Sort by count of
- 
		0 votes3 answers34 viewsError clicking the Tkinter Python buttonHello I am developing a python application using Tkinter but I don’t know why it is giving me error. I was inspired by an example. My code. from tkinter import * win = Tk() win.geometry("400x150")… 
- 
		0 votes0 answers22 viewsTkinter error on re-entryWas using tkinter, I made the code normally, and when I ran the same, everything was working normally, but when I left the program and entered again it gave error: my code: from tkinter import *… 
- 
		0 votes0 answers13 viewsView images in "Gallery" with Python (Tkinter)Hello, the idea is to select all images from a directory (folder), it would display all these thumbnail images in a WINDOW via TKINTER (Python). I was able to locate all the directories of the… 
- 
		0 votes0 answers6 viewsWhich Tkinter method. Entry is responsible for setting the value of the textvariable?I created the following Customentry to implement a placeholder: class CustomEntry(tk.Entry): def __init__(self, master=None, placeholder="", cnf={}, fg="black", fg_placeholder="grey50", *args,… 
- 
		-1 votes1 answer250 viewsGet multiple Entry Python valuesThe idea is that the user type the number of lines and I create the entry according to this amount, this I managed to do, what I’m not getting is to get the value of these entry with get(). y1=0… 
- 
		-1 votes2 answers1013 viewsHow to initialize this Tkinter Photoimage function?Besides importing Tkinter, what do I call the function, for example: _show(?, 'the title'), what do I put in the first variable that is image? Show any example if it is on the desktop.… 
- 
		-1 votes1 answer474 viewsOpening a URL from TkinterIt is possible link a website using Python code? For example, in a menu made in Tkinter (object orientation) I wanted to click button and be redirected to a site. 
- 
		-1 votes1 answer140 viewsInteraction with Tkinter Checkbutton widgets in python3I am creating a system in python3 using the Tkinter library, I need that when checking the Checkbutton widget "Mark All" the others are marked and when unchecking, the others are unchecked. follows… 
- 
		-1 votes2 answers876 viewsHow to take out the Title Bar and adjust the screen size in Python Tkinter?Hello! I would like to know how to put the screen in a smaller size on Python Tkinter. The program below leaves in full screen. So far I can not change the size. from tkinter import * janela = Tk()… tkinterasked 6 years, 1 month ago Sandro Ganske 21
- 
		-1 votes1 answer70 viewsHow to put a program online?There is a shared (google) spreadsheet in which several users edit and watch it simultaneously. For those who have used the shared spreadsheet google know that when someone starts writing all see in… 
- 
		-1 votes1 answer59 viewsCall another screen in KinterI’m trying to create a main screen with two buttons to call the screens "Stock and "Customers", but instead of closing and opening, it adds on the same screen. from clientes import Clientes from… 
- 
		-1 votes1 answer81 viewsHow to get the value of a Variable associated with a Checkbutton in Tkinter? - PythonHow could I get the value contained in checkBtVar having as reference ckBt? for x in range(10): checkBtVar = Variable() ckBt = Checkbutton(root, variable=checkBtVar)… 
- 
		-1 votes1 answer33 viewsWhat alternative do I use to solve the problem of the get() function not workingfrom tkinter import * def executar(): l1['text'] = t1.get() l2['text'] = t2.get() l3['text'] = t3.get() root = Tk() root.title('App') t1 = Entry(root) t2 = Entry(root) t3 = Entry(root) l1 =… 
- 
		-1 votes1 answer28 viewsUsing . get() in your window with Tkinterwhen I try to use the code: import tkinter as tk window = tk.Tk() texto = tk.Text(window).pack() tk.mainloop() print(texto.get()) to return the value of what I wrote in the variable text the program… 
- 
		-1 votes2 answers17 viewsAdjust columns in Tkinter TableI’m using Tkinter in Python, and also using Table. In my code I have a line, as follows: table = Table (frame, dataframe=frame_input['id', 'name', 'usando_limit', 'telephone']], width = (width -… 
- 
		-1 votes1 answer308 viewsI have a Scrolledtext with Tkinter, and would like a command to fetch words that would be inside itarea = ScrolledText(jan, width=800, height=400) Here I have a Scrolledtext, which is nothing more than a text box with a scrollbar, let’s say I typed enough content inside it and would like to… 
- 
		-1 votes2 answers725 viewsInserting images into a Tkinter frameI’m trying to add an image inside a Frame using the Tkinter through the code below: class Gui(): """ Implements a GUI for Interactive Dictionary app """ def __init__(self, parent): self.parent =… 
- 
		-1 votes1 answer665 viewsNameerror: name 'mostrar_urls' is not definedGood afternoon! I’m trying to develop a project/idea I had, only when I went to put the "menubar" in other "parts of the programme" the program does not "whether" run further, can anyone help me… 
- 
		-1 votes1 answer170 viewsFunction to enable and disable ListenerGood afternoon guys, I have the following code that actually works perfectly. However I have an error when I click on "bt1" (boot button) my program crashes. However, it is working on the console.… 
- 
		-1 votes1 answer95 viewsTkinter error on a label objectFirst good afternoon friends, I am developing a POO application in python and my object returned the following error: File "codigo_principal.py", line 37, in <module>… 
- 
		-1 votes1 answer369 viewsPython stopped working, but I think it’s something in the codeI’ve asked a question before about this project... But anyway, I worked on it and added the Menu class, which is a daughter class of the Windows class. Follow the source of the main.py code file.:… 
- 
		-1 votes1 answer128 viewsPYTHON - How to pass a parameter?I’m trying to assemble the game of the copper using python, but I came across a problem that completely blocked my code. I used the Tkinter library and all its functions to create the game, follow… 
- 
		-1 votes1 answer1227 viewsPYTHON: Nameerror: name "..." is not defined, but I defined the functionI’m trying to make a little snake game out of Python. I used the Tkinter library and, to register the pressing of a key, I used the bind() function that executes an event after a key is pressed. I… 
- 
		-1 votes1 answer39 viewsProblems with python 3Good night! I’m having a small problem with python 3.x on my linux Mint 19.03 Code: #!/usr/bin/env python3 #-*-coding: utf-8-*- from tkinter import * win = Tk() def msg(): m = val.get() Label(win,… 
- 
		-1 votes1 answer304 viewsEntry method in Tkinter, PythonHello, I was trying to get one the numerical value of the Entry method, I got it, with get(), but when turning to float or int, depending on where this one returns me an error. The way it works,… 
- 
		-1 votes1 answer49 viewsProblems with a python creation of Grid TkinterI’m creating an app using Python 3 and Tkinter and I’m time a problem overlapping the widgets, I can’t see the error in the code. import tkinter as tk from tkinter import ttk class MainFrame… 
- 
		-1 votes1 answer683 viewsPython script to save notepad textI’m trying to do in python a program that gives some food options to Sario and then saves them in a notepad, but is giving error, what is wrong? error: Exception in Tkinter callback Traceback (Most… 
- 
		-1 votes1 answer108 viewsSave application information on exit (Tkinter)I am making a form by Tkinter and wanted to know how I can save his information if the user closes the application by red X page, so that after he enters again do not need to repeat everything he… 
- 
		-1 votes1 answer29 viewsListbox with synchronized selectionHello! I am studying about Tkinter and I would like to know if it has how to make the two Listbox that I create, have synchronized selection, and also if it is possible to do the same thing with the… 
- 
		-1 votes1 answer41 viewsDoubt in Python code using TkinterI’m reading Head First Programming in Python and presented the following error in the execution of a proposed program: Traceback (most recent call last): File… 
- 
		-1 votes1 answer49 viewsHelp with python TkinterGood morning, There’s an extra column, but I can’t figure out where the mistake is. follows the code: from tkinter import* from tkinter import messagebox from tkinter import ttk class arquivo: def… 
- 
		-1 votes1 answer77 viewsUpdate label automatically with TkinterI would like to take the value 1 and subtract with the value 2 that the user type and update the result label automatically. This way, as the user is typing the result label is already updating. How… 
- 
		-1 votes2 answers45 viewsTkinter and classI am beginner in classes and Tkinter and am having a problem that I think is by little knowledge of me in POO. In the code below, only one label is running, neither buttons nor anything execute,… 
- 
		-1 votes1 answer20 viewsHow to change the color of the text outside of a Tkinter function?I’m trying to change the color of a text outside of a function with Tkinter. I tried to put the label inside the function but keeps overwriting one text on the other. Follows the code. from tkinter… 
- 
		-1 votes0 answers17 viewsCreate inputs/selector/radios in TkinterGood morning, everyone. I started recently in the games and studies with Python and I’m deepening now with Tkinter to develop some interfaces that interact with the user. I have a code that accesses… 
- 
		-2 votes1 answer1793 viewsIcon at the top of a windowI need to change the icon in the left corner of a window I created, the code I have as an example is the following, but it doesn’t work: objeto.tk.call("icone.ico"); How can I do?… tkinterasked 7 years, 11 months ago Braz Pereira Junior 1
- 
		-2 votes1 answer19 viewsError with window creation using Tkinterthat’s the code I’m trying to run: from tkinter import * janela = Tk() janela.mainloop() janela.geometry(450x450) janela.title('calculadora GUI') He would open the window normally before I added… 
- 
		-2 votes2 answers221 viewsCreating an Entry formatted for CPF in Python (Tkinter)I would like to know how would be the application of a formatting in a field Entry, using the tkinter, for the format of CPF numbers, in the case of, XXX.XXX.XXX-XX. I found nothing similar, only… 
- 
		-2 votes1 answer151 viewsHow to recover text from a Tkinter widget created with the Guis PAGE generator?I am trying to create an interface where the user can type a text and save that text in a txt document. To make the process easier, I used a Guis generator called PAGE, which uses the Tkinter… 
- 
		-2 votes1 answer92 views:python3 Tkinter Requests: Temporary lock in get('url') with request module!This is the following I created a script to decrypt hash md5, but when I enter it into Entry 21232f297a57a5a743894a0e4a801fc3 that is admin and is contained in the Wordlist, it hangs every time when… 
- 
		-2 votes1 answer543 viewsTkinter Python screensfrom tkinter import * import Saque #Propriedades da Janela Principal JanMenu = Tk() #JanMenu é uma instância da Classe Tk; JanMenu['bg'] = 'white' #Cor de Fundo da Janela = Branco… 
- 
		-2 votes1 answer54 viewsinterface, I want her to save her name and phone in a txt listfrom tkinter import * class Application: def __init__(self, master=None): self.fontePadrao = ("Arial", "10") self.primeiroContainer = Frame(master) self.primeiroContainer["pady"] = 10… 
- 
		-2 votes1 answer66 viewsHow do I import a library that prints something off the Internet and shows it on Tkinter?I’m doing a graphical interface on Tkinter and I have a library that shows the weather forecast (when I import this library and run the program it already shows me the results). How do I show this… 
- 
		-2 votes1 answer132 viewsClose Tkinter window after few secondsWhoa, guys, I’m having a very simple doubt. I need to close the Tkinter window after a few seconds automatically, someone can help me? Follows the code: from tkinter import * from PIL import… 
- 
		-2 votes1 answer128 viewsQuery data in a txt file with python TkinterI’m creating a simple system to query employee data stored in a file txt. def read_from_file(): with open('dados.txt') as file: for line in file: line = line.rstrip('\n') nome, matricula,… 
- 
		-2 votes1 answer95 viewsHow to make Progressbar in Kinter?Hello, I wanted to make a progression in Kinter that when it came to the end it would stop, the progress of the progressibar would be activated by a button, but when the button is activated, the… 
- 
		-2 votes1 answer128 viewsError when an image is loaded into a second Tkinter - Python windowHello, I’m developing a small program using tkinter, where, in the first window there is a button that opens a second window where there is an image. However, the program does not carry this image,… 
- 
		-2 votes1 answer60 viewsImage reference path in Label TkinterI’m training POO in a personal project that I’m developing in showing a window called by a button that shows "samples" of text from a language, showing a flag and text from that language. The… 
- 
		-3 votes1 answer26 viewsWhat is the mainloop functionality in the Tkinter frame?I was trying to make a frame appear on the screen on Tkinter, and after a lot, I tried to check the documentation and saw the name "mainloop", when testing it appeared on the screen, which I did not… 
- 
		-3 votes1 answer276 viewsPython - Tkinter GridHow can I build this layout using Grid? The gray rectangle used place, however, I would like to know how to get the same result using Grid in all elements. from tkinter import * class Main(): def…