Python Forum
How to use an Emulator and a MttQ broker?
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use an Emulator and a MttQ broker?
#3
Hi,

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.
Reply


Messages In This Thread
RE: How to use an Emulator and a MttQ broker? - by Frankduc - Jun-30-2022, 05:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyautogui with a display emulator? gumby4231 0 2,674 Jul-30-2020, 02:46 PM
Last Post: gumby4231
  running python script from shell invoked with os.system("x-terminal-emulator -e /bin/ markhaus 2 3,181 Feb-21-2019, 11:55 PM
Last Post: markhaus

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020