Questions tagged as 'tkinter'

1
answer

Image overlay on Tkinter

I have a problem trying to overlay an existing image in Python 3. from tkinter import * jan = Tk() jan.geometry("500x500") jan.configure(background="#f0f0f0") head = PhotoImage(file = "rosto0.png") label = Label(jan, image = head) label.place...
asked by 28.07.2018 / 13:07
1
answer

Save text file in Python

I'm creating a simple text editor with Python and Tkinter and I want to do a function to save what was typed. I did the save function, but it only creates the txt file and does not save what was typed in Text. How can I do this? Here is my co...
asked by 04.02.2018 / 17:52
1
answer

Real-time window update problem

Hello. I'm creating a program that allows the user to know which note they are singing and their respective frequency, in real time. However, during the update of the window, the program stops working and only refreshes after a few seconds, happ...
asked by 26.07.2016 / 04:54
1
answer

how to make a text fit the size of the tkinter screen?

I'm doing an application in tkinter and I need the text typed in a single Label to fit the size of the window, because otherwise I have to get using line break. Can anyone help me? from tkinter import * janela1 = Tk() janela1.title("INTRODUÇÃO...
asked by 10.01.2017 / 22:36
1
answer

Python tkinter text widget in another setting does not allow insert

I'm new to programming and to python. I would like to be able to enter a a box information that was created in another setting. How is this possible? According to the code, which is attached, the program gives an error. Thanks import tkinter a...
asked by 27.02.2016 / 20:50
1
answer

View jpg image dynamically in python Tkinter label

I'm trying to display a chosen image from a Listbox in a Label. The following code works: import Tkinter as tk from PIL import ImageTk, Image window = tk.Tk() path = 'img\2015722_univ_sqs_sm.jpg' img = ImageTk.PhotoImage(Image.open(path)) pa...
asked by 08.07.2015 / 18:34
1
answer

MP3 player with Python

I do not know almost anything about programming and so I've been studying new possibilities, like POO and the like. Recently it gave me a willingness to try to learn Graphical Interface and also to create an MP3 player, all this in Python (all y...
asked by 10.05.2017 / 16:38
1
answer

How to update the value of a variable?

I made a function in which it has an initial variable and according to which the user marks a checkbutton it takes this value stored in the variable and then takes and verifies the value of it and deletes the previous value puts the current valu...
asked by 19.05.2017 / 00:31
1
answer

Trigger an event after two button clicks

I'm developing a small interface in Tkinter , but I have the following doubt: Is there a mouse event that allows an action to be performed after two consecutive clicks on a button?     
asked by 12.10.2016 / 01:44
3
answers

Countdown using tkinter

I'm trying to design a program on tkinter to do a countdown. I can not understand why I can not get Entry and turn it into an integer. (As this is just a test, I did it using Portuguese myself) from tkinter import* root = Tk() inicio = En...
asked by 26.06.2016 / 21:13