Questions tagged as 'tkinter'

1
answer

Adjust Tkinter window and widjets according to screen resolution

Hello, I'm developing a python GUI with TKinter. I'm trying to make the widget setup I've set up to suit the monitor's resolution. I applied the following code. janela = tk.Tk() lado, cima = (janela.winfo_screenwidth()), (janela.wi...
asked by 20.12.2017 / 12:19
0
answers

How to use the while in the tkinter to make the game of Even or Odd?

I'm starting now and so I'm super lost, this is my code: from random import choice from tkinter import * janela = Tk() janela.title("Jogo do PAR ou IMPAR!") fontPadrao = ("Arial", "10", "bold") def jogar(): pc = [0, 1, 2, 3, 4, 5, 6, 7, 8...
asked by 20.12.2017 / 19:21
0
answers

Tkinter == Label / Msg only have 1 item in the list.How to solve?

Well, the goal is to have all the items in the list in the same label or msg appear. I'm not very experienced at Tkinter, so I do not know if there's a limit to that. Here is some of the code below. prod=['Exemplo-10.00','Exemplo2-20.00','Exem...
asked by 15.10.2017 / 23:23
0
answers

How to stop a progressbar in Tkinter

I've always been developing in JS a little lost here in Python, if you can help me ... I wanted to leave the button close without an event until the progress bar is gone, and the progress bar on completion is "indeterminate" #Loading pa...
asked by 13.08.2017 / 22:34
1
answer

Image problem on a tkinter button

I want to put image on the buttons, I've done this before, but agr n is working. Can you help me? ** Detail: ** In the same tkinter window is instantiated the screen of a turtle. def images(self): imgAdd = tk.PhotoImage(file='./Images/a...
asked by 05.07.2017 / 03:55
0
answers

How to enter Weather Underground forecast icons

Good afternoon I'm trying to insert the Weather Underground icons but the icons do not appear in Python 3. Below I leave a part of the code. url = "http://api.wunderground.com/api/api_Key/forecast/lang:PT/q/PT/Lisbon.json" temp = urllib.re...
asked by 20.05.2017 / 18:10
1
answer

Put take off or move a frame in Tkinter (python)?

I have a problem in the python code which is as follows, type I want to remove the frame from the checkbutton of the entry so I can not, if you can help me, execute the code there for you to understand the problem. > 'from Tkinter import * fro...
asked by 18.05.2017 / 21:19
2
answers

how to make time appear in the window (label)?

I have the following code for a "timer", but it does not appear in the window, just in the Python 3.6 console. How do I get it printed in the window? (note: the window only opens when the preset time ends) from tkinter import* from datetime im...
asked by 07.05.2017 / 01:39
1
answer

Show mailing list with Tkinter

I'm running a Tkinter program that relies on an email box. I intend, in a Tkinter window to show a list of emails based on a directory with .txt files (which are emails). I've been looking for a command to create a box and show the txt na...
asked by 10.01.2016 / 02:57
1
answer

Get the cursor position on a tkinter Text widget

I would like to know how to get cursor coordinates on a Text object in tkinter. For example, suppose I have this text:    Hello, how are you?       It's okay. [CURSOR] How do I get the row and column of [CURSOR]?     
asked by 11.12.2014 / 03:16