1
Good afternoon,
I would like to create a window with the words "Application running" and tried the following:
from Tkinter import *
root = Tk()
T = Text(root, height=2, width=30)
T.pack()
T.insert(END, "Aplicação rodando")
mainloop()
*** Resto do meu script aqui... ***
However I noticed that my script only starts running when I close the window created by Tkinter, it is possible to keep the window open while my script is running ?
Yes, it does, but you know what the function
mainloop
ago?– Woss
Opa Anderson, in vdd I have no idea. My current script records an audio via microphone, transforms it into an audio file, this audio file is processed and what the user says returns in a . txt, however I noticed that the user did not know that was being recorded and wanted something very synthetic so I just tried to copy a script from the internet.
– Filipe Gonçalves
Take the @Andersoncarloswoss tip and study what
mainloop()
ago.– Rafael Barros