Dec-06-2018, 05:53 PM
Hi, I'm doing Python with Tkinter.
So, I've a program :
But I've 2 problems :
(I've IDLE Python 3.6 32 bits)
When I click on 'Run Program' in the edition windows, the program run.
But, when I double clic on it, in the folder, the black window open, and shut up. I don't know why and I can't see what is written ...
And is it possible to run it in bottom task ? Like when the users can't see it or just when the users don't click on it. Like, when you are surfing on Internet, and you press "A" and my program start and run an other program ? Because if not, I can use input() ...
Thanks
I'm sorry for the bad english ...
So, I've a program :
from tkinter import * root = Tk() def fonction(event): print(event) root.bind('a', fonction) root.bind('b', fonction) root.mainloop() input()This program take what the users click on his keyboard.
But I've 2 problems :
(I've IDLE Python 3.6 32 bits)
When I click on 'Run Program' in the edition windows, the program run.
But, when I double clic on it, in the folder, the black window open, and shut up. I don't know why and I can't see what is written ...
And is it possible to run it in bottom task ? Like when the users can't see it or just when the users don't click on it. Like, when you are surfing on Internet, and you press "A" and my program start and run an other program ? Because if not, I can use input() ...
Thanks
I'm sorry for the bad english ...