Questions tagged as 'tkinter'

1
answer

Change text color of an Entry () disabled

I was discovering a bit more of tkinter and it gives that, doing a Entry , I wanted it to be deactivated but with the text of a certain color. I've tried it with the fg= attribute but it does not work. I tried to report on how to do i...
asked by 24.06.2018 / 17:58
1
answer

It does not show the images

I'm practicing with Python 2 and Tkinter, the problem is that when I try to add an image it does not appear. The code is this: image= tk.PhotoImage("1473185883EMBW_07.gif") image=image.subsample(1,1) label=tk.Label(image=image) label.place(...
asked by 16.05.2018 / 00:14
1
answer

How to export Matplotlib graphics with Reportlab?

I'm creating a graphical interface, with python and the tkinter module, the interface has to generate a graph and if I click on the export button I have to generate it in a pdf with the Reportlab library. How do I export it? import matplotli...
asked by 22.05.2018 / 19:10
1
answer

Error = tuple index out of range ... problem with postgresql and python

I have the following function: def Buscar(self): comando="SELECT * FROM tipo_inversion where id='"+self.palabra.get()+"';" conectar=Base_de_datos.BaseDeDatos() conectar.cursor.execute(comando) #rows= conectar.cursor.fetchall()...
asked by 05.03.2018 / 03:58
1
answer

Fit a background image in python

I have a problem I want to adjust the background image to cover the entire interface, but I move the size and sometimes if you show it to me and other times you can help me in this detail please from tkinter import * from tkinter import Tk...
asked by 03.04.2018 / 03:31
1
answer

Get text entry tkinter

I want the text that I enter in the window entry, after clicking on start, I will return it in this variable: d = (Inventory_data.get ("Inventory_data")). get ("texto introducido") Code: ventana = Tk() ventana.geometry("500x300+100+100")...
asked by 09.10.2017 / 06:58
1
answer

Erro when importing ttk, indicates that it is not defined

I have this program #importo las librerias from Tkinter import * from ttk import * class Aplicacion(): def __init__(self): self.raiz = Tk() self.raiz.title("Alta Velocidad") # Declara variables de control...
asked by 23.11.2016 / 18:43
1
answer

How to execute conditions when pressing button

How about, I am new to programming in tkinter and I am creating a graphical interface to generate text with interruptions of a button, my intention is that the code show the alphabet and that the cursor is interrupted in the desired row and star...
asked by 13.09.2016 / 02:25
0
answers

Scrollbar does not work in Canvas - Python

I have a problem with a job that I have to do, the question is that I have to open an image and put it on the canvas and if the image is bigger than the canvas I want to be able to move with the scrollbars, the question is that the scrollbars re...
asked by 22.12.2018 / 21:00
0
answers

Get of Entry does not work (python (tkinter))

I need to do the following exercise, the problem is that when I want to use the var.get () does not return anything, does not give an error, only returns nothing. I tried to use it inside the main and it works, but inside the function, can someo...
asked by 13.12.2018 / 19:07