Questions tagged as 'tkinter'

1
answer

Importing values from other codes into tkinter - python

Hello, I'm doing a great program and wanted to split the screens into other codes, I can already import the screens, but I need to get some values from other screens, but I can not do that. First screen: from tkinter import * import teste_i...
asked by 08.12.2018 / 16:59
1
answer

Menu in the Tkinter Python module

Hello, I have a screen that was made in Tkinter and I have a menu with cascading submenus, what I need to do is show the different submenus information without having to create several other screens using functions. It's possible? If yes, how? H...
asked by 06.12.2018 / 02:29
1
answer

Python 3: Tkinter - Background image does not exist, "pyimage1" does not exist

My code for displaying a background image: from tkinter import * def entrar(): #Janela Principal janela = Tk() janela.title("Salvadados") janela.geometry('400x600') #fotofundo back = Label(janela)...
asked by 28.11.2018 / 14:01
1
answer

Python 3 Tkinter: How to get a value / string from a RadioButton inside a function?

I'd like to get value from the selected sex and print it in the DataSavers window, but it does not work, not even the other data typed as name or age. I have here a main window where it will display two buttons: REGISTER and EXIT. The exit butto...
asked by 27.11.2018 / 13:44
0
answers

how to solve problems with "referenced before assignment"? [duplicate]

from tkinter import * from tkinter import messagebox jan = Tk() jan.title("Pontuacao") jan.geometry("200x200") pontos = 0 a = Label(jan, text="pontos") a.place(x=0,y=0) def aumentar_pontos(): pontos += 1 messagebox.showinfo(title="A...
asked by 27.11.2018 / 18:42
1
answer

Program crash when executing the function. Tkinter + Python3

This is the following I created a simple program to break numeric md5, but the same hangs when I click on descrypter and it only works again when it finds the hash, but it gets stuck until it finds and has hash like hash md5 of '81748856' which...
asked by 18.10.2018 / 18:18
1
answer

Movements in tkinter python

I'm getting python, and I wanted to make an interface where I have a ball that hits the walls, I just wanted to know how I can make the ball hit the walls. from tkinter import * import time tela = Tk() tela.geometry('500x500') tela.resizable(F...
asked by 03.10.2018 / 19:54
1
answer

How do I animate an object on the canvas with a bind with an animation already "rotating"

I was making a game copy of Space Invaders but when I went to do the "shot" of the ship, I came across a problem: AsseenintheGif,whenIhitthekey,everythingonthecanvas"freezes" until the shot reaches the end, how do I solve it? Thank you in...
asked by 01.10.2018 / 04:51
1
answer

How to use sleep for a loading effect tkinter graphical interface

I want to use the sleep of the time module to give a load / wait effect on checking for a condition. Without using tkinter functions, the effect works perfectly, but when I try to do the same with tkinter , this no longer works. Could any...
asked by 27.08.2018 / 16:06
1
answer

How to leave the label background transparent? python3 + tkinter

lbl2 = Label(jan, font=("Arial", 12, "bold"), text="Escolha apenas uma Categoria por vez") lbl2.place(x=20, y=450) I'm putting this label on a green image, but it ends up getting its gray background, is there any way I can use the tkinter to j...
asked by 23.08.2018 / 20:22