Questions tagged as 'tkinter'

0
answers

How to get TKinter information in a variable out of '' def ''

The program I'm doing, I've done it before, but without the graphical interface, now that I'm doing a graphical interface, there are three text boxes where it picks up the information and checks if it has something written or not, but I can onl...
asked by 01.04.2018 / 02:08
0
answers

Python 3.x TKInter filedialog does not return the extension chosen by the user

Hello: I'm developing a GUI with TKInter where the user needs to enter a filename to save data. This file name can be from some specific extensions. When the user opens the dialog to inform the name of the file (with tkinter.filedialog) an...
asked by 06.03.2018 / 13:33
0
answers

Python - Tkinter Scrollbar

I would like to put the buttons in an organized way from top to bottom, in order, but they are either above the Canvas, or in the middle, or below, not having a sequence. Next I created Canvas and two scrollbar on the right and bottom. Here i...
asked by 01.03.2018 / 22:04
1
answer

Tkinter, how to update label on canvas?

Hello, I'm trying to build a PivotTable that automatically updates values but I'm not able to update the Labels, I'm using the following code: import tkinter as tk def populate(frame): global widgets widgets={} '''Put in some fa...
asked by 24.02.2018 / 15:49
0
answers

How do I update a button when an external event occurs?

I made a small application where it communicates with an external drive by querying some Boolean variables. Depending on the status of these variables, a button is placed on the screen and a figure is included in this indicating the status of th...
asked by 06.02.2018 / 13:15
1
answer

How to make a window stand above all?

I do not know if it's possible to do this, so I will not even put a Code here. My question is, if it is possible to make a window stay in front of all other windows, and I'm not talking about (TopLevel), I wanted the program window to be in fron...
asked by 05.02.2018 / 18:48
1
answer

I can not delete the selected sqlite database record in the listbox

After formatting the record in the listbox ('{} Mobile: {}'. format, I can no longer delete the records from the Database. lista = self.cur.execute("SELECT * FROM lista") for nome, celular in lista: self.listbox.insert(END, '{}...
asked by 01.02.2018 / 14:08
0
answers

Updating an image in tkinter

Hello, I would like to know how do I get an image on my button when I press it and another image when it is not being pressed.     
asked by 29.01.2018 / 17:09
1
answer

how do I focus on the open tkinter toplevel?

In the Help menu, I'm opening how many windows I click to open, this was not supposed to happen. I tried to adapt something from this post: Tkinter focus on a window bypassing the behind? , but I could not, it's the same problem practically....
asked by 25.01.2018 / 20:21
0
answers

IndexError: list index out of range

I've looked in other questions, and apparently none have the answer, sorry if something is wrong or if you need more information, I'm new. def seleciona(self): self.posicao = self.mostrar.curselection() if self.posicao[0] == '':...
asked by 20.01.2018 / 23:24