Questions tagged as 'tkinter'

1
answer

Problems developing a bricks-breaking game in tkinter (collisions with objects)

I'm a few days studying and trying to get the ball by hitting the rectangles from above they add and invert the side from tkinter import * from constantes import * import random class Jogo(): def __init__(self): #Criar tel...
asked by 19.06.2018 / 14:29
1
answer

Error in font python 2x

I'm trying to create separate sources for my project in a given .py file, after creating them I import to the project.py, I do this as follows: font.py  """ Criando as fontes. """ def fontes(self): self.font1=("Arial", "60") project....
asked by 15.08.2014 / 15:16
0
answers

Remove image background with tkinter

I'm trying to make two layers with two images in which the background stays entire in the application, and the second layer overlaps. The second is transparent, however, when the display occurs, it places gray background. How can I get this fund...
asked by 16.11.2018 / 04:29
1
answer

How to access the menu item of a menu

I would like to know how to access an item from a menu, to connect it to a function or handler . For example, I would like to control the behavior of the application when I click in the item menu. The function bind can be useful, bu...
asked by 19.10.2014 / 20:08
1
answer

How to make the cursor in the Text at the beginning of the program?

I would like to know how to flash the cursor on a tkinter.Text object when I walk the application, because normally no widget is selected. I would like to have the same effect as a terminal when it is turned on, where the cursor is flashi...
asked by 11.12.2014 / 02:23
4
answers

How do I capture each key typed in python

I'm trying to make a program that captures the keys typed on the pc, so that I can access them later. I do not know where to start. I do not know if it uses sqlite3 (database), in google I researched, but some explanations are zero.     
asked by 05.09.2018 / 06:03
0
answers

Difficulty in running

I'm doing a program Served on Socket Python using interface Tkinter , I can not exchange information from the scripts, to enter into the Tkinter GUI. when I execute both importing the socket I have no way to execute the rest...
asked by 08.01.2018 / 19:53
0
answers

Label with Dynamic Text in Tkinter

I researched a lot here in the stack and google, I stayed all night looking for a simple solution but I did not find it, I saw some form of solving but none worked for me so far. Situation: I am creating a Python app using Tkinter to manage a...
asked by 15.08.2017 / 16:32
2
answers

Make server socket not tkinter allow client input

The program works correctly, it creates a server for your user, the server opens without problems. But when I use a client to access it, the following message appears on the server client:    Traceback (most recent call last):     File "C: \...
asked by 04.01.2017 / 17:30
1
answer

NameError: name 'Window' is not defined [closed]

I'm following this PDF , I'm on page 10, the code gives error and I I do not know why. from tkinter import * class Janela: def __init__(self,toplevel): self.fr1 = Frame(toplevel) self.fr1.pack() self.botao1 = Butt...
asked by 28.11.2018 / 13:44