Questions tagged as 'tkinter'

1
answer

Load Dataframe in the background

I have a small tool made in pthon 3.6 in which I use pandas to load dataframes. I want to upload a very large .xlsx file, with about 200,000 records and I use file = pd.read_excel('archivo.xlsx') This takes a long time and leaves the t...
asked by 10.12.2018 / 14:37
0
answers

"Print" Tkinter Canvas in a PDF file

I have a small tool that generates some graphics and I show them in a Canvas. I would like to create a PDF file generated from the canvas, I am trying this solution but it does not work for me: link Is there a library to do what I want?...
asked by 03.12.2018 / 20:18
1
answer

Show and hide text in a Button Tkinter

I'm trying to place a button with tkinter that does not appear its text placed on it until you click on it. I am trying to do it in the following way but it does not work for me the buttons come out the same in white. I have doubts in the functi...
asked by 21.11.2018 / 15:24
1
answer

python-tkinter problem with command in button

I have the following code with a form class that calls the componentes.py module that contains some basic functions to generate basic forms. In principle only the user login and password is created, until then it goes well, but then I...
asked by 16.11.2018 / 03:31
0
answers

Run subprocess.run on a terminal other than the one that executes the Python script

I'm writing a program in Python3 with a Tkinter GUI. I have included a terminal xterm in one of my frames: Frame2 = Frame(master) Frame2.place(x=self.anchoVentana,y=2*self.alto/3,width=self.ancho-self.anchoVentana,height=self.alto/4) w...
asked by 14.11.2018 / 11:35
1
answer

Change background color of a cell in TreeView

Can you change the background color of a particular cell in a treeview according to the information it contains? In plan if it contains a 0 the background is green, if it contains a 1 the background is orange and if it contains a 2 the backgroun...
asked by 12.11.2018 / 12:53
0
answers

Tkinter OptionMenu is too big

municipio=tk.StringVar() tk.Label(raiz, text='Municipio', foreground='blue', font=('Times',15,"normal")).grid(row=11, column=0, sticky='w,e', padx=5, pady=5) tk.OptionMenu(raiz, municipio, *listamunicipios).grid(row=11,column=1, sticky='w,e', pad...
asked by 11.11.2018 / 14:19
0
answers

PermissionError: [Errno 13] Permission denied

I am creating an application in python (3.4) with tkinter and I am compiling it with pyinstaller. The code fragment that brings the error is this: client = paramiko.SSHClient() known_hosts = open(self.resource_path("known_hosts")) # Linea 73 c...
asked by 05.11.2018 / 14:38
1
answer

Update the status of a widget in tkinter

I've been trying to make a button in tkinter update. The thing is that putting what I thought was right and the solutions of other Stackoverflow questions, still does not work. The example: def cambiacolor(): boton.config(bg= "Gray")...
asked by 05.11.2018 / 18:54
0
answers

Refer to a widget outside the class - Tkinter - Python3.6

I have an application where I have my main code in a file called main.py and the functions and classes in another file called events.py. Well I have a class like this and what happens to me is that anywhere in the code I can put self.label and I...
asked by 02.11.2018 / 13:28