Jun-30-2022, 05:21 PM
Hi,
I didn't know that.
I find out about place() looking at example on the web. I am in a rush it is due monday.
GPIO is tough to use with Tkinter. But thats the project and i have to live with that. Its just a first draft the variable name will change. Led or Salon_led its got to work anyway. I always change all my variable names before submitting the work.
Quote:You cannot do that. A tkinter program can only call Tk() once. If you want another toplevel window use Toplevel(). Histo() also calls mainloop().
I didn't know that.
Quote:Do not use "place()" to position widgets, use pack() or grid(). place() should only be used if the code is generated by a designer, or if you are forced into doing your own layout.
I find out about place() looking at example on the web. I am in a rush it is due monday.
Quote: You should setup your outputs in your main code (GPIO.setup(LED1, GPIO.OUT)) and set the outputs in your functions (GPIO.output(LED1, True)).
GPIO is tough to use with Tkinter. But thats the project and i have to live with that. Its just a first draft the variable name will change. Led or Salon_led its got to work anyway. I always change all my variable names before submitting the work.