I have an exercise with tkinter library. I write code with gui in PyCharm but if I run a code nothing happen.
I tried to run that in cmd prompt but script is running again in PyCharm and nothing happen.
I tried also run script with cmd prompt as default to open .py format but nothing happen again.
Do you have any suggestions how can I run my script and see GUI ?
Here is my code:
import tkinter, sys
def koniec():
sys.exit()
def zmiana():
l.config(text = 'Wcisnij zakoncz')
main = tkinter.Tk()
l = tkinter.Label(main, text = 'Wcisnij przycisk ponizej')
b = tkinter.Label(main, text = 'Zakoncz', command = koniec())
b2 = tkinter.Label(main, text = 'Przycisk', command = zmiana)
l.pack()
b.pack()
b2.pack()
main.mainloop()