Questions tagged as 'tkinter'

2
answers

Tkinter GUI hangs when looping

I'm new to programming, and I've had some trouble running the code perfectly. I chose the python language because of its flexibility. For some time I've been trying to create a macro with a GUI, I use Tkinter, the window is the way I plann...
asked by 13.01.2016 / 03:24
2
answers

name is not defined - name / variable not defined, tkinter and slite3 help

I'm starting to study sqlite3 on the go, and this is difficult, but I've already got some things, the problem is that when compiling the program the following error appears: "name 'adic' is not defined". Follow the code: from tkint...
asked by 09.08.2018 / 05:12
1
answer

How to start the full screen window with tkinter?

from caixaimport import * # Variables # Tkinter Variables win_width, win_height = 1280, 1024 windows = Tk() # start a variable Tk windows.geometry(f'{win_width}x{win_height}') windows.title('SCH payment system') # putting a title in variabl...
asked by 06.03.2018 / 01:40
1
answer

How do the elements of a tuple be the arguments of a function in python?

First I'll summarize the problem and then explain what I'm trying to do. If you can answer the problem in a nutshell, you do not even have to see the rest. Is there a way to pass the elements of a tuple as arguments to a function? For example:...
asked by 08.05.2017 / 02:09
1
answer

How to recognize the selected Entry

I have two data entries (password.entry, id.entry) and I want to make the program recognize which of these fields is clicked and insert the value that is inside a button in that selected field.     
asked by 20.09.2018 / 18:28
2
answers

How do I get data from an Entry and add it to the Database (sqlite3)

from tkinter import * jan = Tk() jan.title("Dados") jan.geometry("200x200+250+100") label = Label(jan, text="Nome:") label.grid(row=0, column=0) nome = Entry(jan, width=25) nome.grid(row=0,column=1) label2 = Label(jan, text="Idade:") label2.g...
asked by 11.08.2018 / 19:09
1
answer

switching from one entry to the other when entering a word

People, help me with this, I have two entry and I need when I type a word for example (Python) it changes from one entry to the other automatically from tkinter import * janela2.geometry('250x250+100+100') lb2 = Label(janela2, text='coloque...
asked by 17.06.2018 / 15:56
1
answer

How to hide a Widget?

I need to know some way that by clicking on Button "hide" a widget (a Label for example) from my window, being possible to use it later; Using place on the widget that I wish to "hide" (Yes, it NEEDS to be .place ). OBS:...
asked by 21.09.2018 / 22:08
1
answer

Tkinter function being executed even without clicking the button

Here is my code: from tkinter import * from tkinter import messagebox def add(a, b): messagebox.showinfo("Resultado", a.get()+b.get()) win=Tk() win.geometry('300x200') a=StringVar() b=StringVar() in1=Entry(win, textvariable=a) in2=Entry(wi...
asked by 13.02.2018 / 18:18
1
answer

PYTHON - how to use a loop without stopping the Tkinter

I have this program which is a kind of 'AirForce' (I automated a click process in a place, type a number, and click elsewhere with @Pyautogui), I need to use a loop but when the loop starts Tkinter, so I could not think of how to do something to...
asked by 06.02.2018 / 21:37