Questions tagged as 'tkinter'

2
answers

Python 3 and Tkinter: progress bar does not update during script execution

Hello. I'm creating a layout converter using Python 3.6.4 and Tkinter. Among other things, the GUI should have a progress bar that updates its value with each interaction of the conversion process, for example, every processed line of the fil...
asked by 12.03.2018 / 19:01
1
answer

TKiNTER - How to save string from Entry ()

I have a problem with tkinter, I am not able to save the value of an Entry () in any variable so that I can use the name of that file to create a TXT. Follow the code: def criarPL (): global nome_pl def salvar(): arq = open(...
asked by 11.05.2017 / 00:09
2
answers

Python - Module: Tkinter - window manipulation

Like every good new programmer, a lot of ideas come up in the beginning, and one of them was this: how do I manipulate the windows? How so? Remove rounded corners when running under Windows 7. change the background where the name, icon, an...
asked by 19.03.2017 / 01:59
1
answer

How to convert a string to an integer in a socket program?

Here is a snippet of code: def CriarServer(self): Host = self.Txt1.get() Port = self.Txt2.get() sockobj = socket(AF_INET, SOCK_STREAM) #Erro sockobj.bind((Host, Port)) sockobj.listen(5) while True: da...
asked by 03.01.2017 / 20:13
1
answer

Python tkinter: Window works perfectly, but does not close after executing a function

code: def editar (self, event=None): ob = self.buffer(opcao=2) if (ob[1] == None): return elif (ob[0] == None): return root = Tk() root.withdraw() for o in self.lista: if (ob[0].codigo.upper()...
asked by 13.10.2016 / 18:59
1
answer

Display the value of a counter in a table

Live, The goal is to simulate the iteration between the system and the user, and for this I have to know how many repetitions have been made in each test scenario. I leave my code below, Defines the Control Layout countHF = 0 countRT...
asked by 02.11.2015 / 13:04
1
answer

Automatic selection of the tkinter window when I start the program

I'm creating a mini editor in Python 3.4, and I'd like it when the program first appears on the screen, tkinter.Text is selected to write. I tried to use text.focus_force() , which does not work, because in reality it is the IDLE th...
asked by 11.12.2014 / 16:08
1
answer

Check if a tkinter.Text is empty

I'm trying to create a simple notepad, but I have one small problem: when I try to see if the text of an object Text is empty or not: if text_area.get(0.0, tkinter.END) != "": print("Text não vazio") # é sempre executado When I t...
asked by 24.09.2014 / 00:14
1
answer

Text position in Tkinter

Hello. I'm working with Tkinter and I'm at a standstill. I have nine buttons and each prints a number. How can I make sure that after pressing a button, regardless of the button I load, it always shows a number in the same position and when I pr...
asked by 31.07.2014 / 00:57
1
answer

User choices in Tkinter

Hello. I'm trying to create a graphical interface program using Tkinter (I learned a short time ago) and wanted the user to write something in the text input box and press the button. If you write capital B it prints "starting the bios" and if i...
asked by 22.06.2014 / 19:12