Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 newbie
#2
Well, if you're looking for improvements, from tkinter import * probably should be something like import tkinter as tk. import * is not a good way to do things. Tutorials do it because it's easy, but it's also lazy and can lead to mistakes that are hard to trace down.

You call root.mainloop() inside of an infinite loop. I'm pretty sure that's something that should only be called once. Since it consumes the main thread, I'm not sure that while True: is needed at all.
Reply


Messages In This Thread
Python3 newbie - by tony1812 - Jul-26-2017, 01:46 PM
RE: Python3 newbie - by nilamo - Jul-26-2017, 04:20 PM
RE: Python3 newbie - by tony1812 - Jul-27-2017, 09:18 AM
RE: Python3 newbie - by sparkz_alot - Jul-27-2017, 01:14 PM
RE: Python3 newbie - by Larz60+ - Jul-27-2017, 01:53 PM
RE: Python3 newbie - by tony1812 - Jul-27-2017, 03:20 PM
RE: Python3 newbie - by Larz60+ - Jul-27-2017, 05:16 PM
RE: Python3 newbie - by tony1812 - Jul-27-2017, 05:48 PM
RE: Python3 newbie - by Larz60+ - Jul-27-2017, 06:32 PM
RE: Python3 newbie - by tony1812 - Jul-27-2017, 07:47 PM
RE: Python3 newbie - by Larz60+ - Jul-27-2017, 08:01 PM
RE: Python3 newbie - by tony1812 - Jul-28-2017, 12:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 5,054 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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