Python Project

I don’t understand why graph1 open when running the programm and the button don’t open it after closing it. Can somebody help me?

your function opens a window/thingymajig
functions run when you call them
you call your function when you start your program
you don’t call your function when your button is pressed

1 Like

The programm was right and i found the little problem. I used bracket in command when i create the button. It seems that it doesn’t need brackets as identification for a function to call

If you call a function you get its return value back. If you meant to refer to the function and not the return value of the function, then you certainly should not be calling it

It’s a bit like saying you want the numbers 3 and 5 but instead used 8 because instead of using those numbers you did some operation on them first