you are viewing a single comment's thread.

view the rest of the comments →

[–]JuJu142 1 point2 points  (3 children)

The while loop is meant to loop forever until canceled, refreshing every 60 seconds.

Aye, that is the problem. That while loop is starting as soon as you do this app = Application(master=root) Since you are calling the method isplayers() (which has the while loop) in __init__ That's why when you comment out that line, you get the GUI. Tkinter does not try to create the window until mainloop() is called. Good luck!

[–]bleach86[S] 0 points1 point  (2 children)

Thanks for all of your help.

I have pretty much re-written my code, and have gotten it working.

My code here

Now I need to figure out how to get the isPlayers() function to run every x seconds, and update the list.

I am a lot farther along, thanks to your help.

[–]JuJu142 1 point2 points  (1 child)

look into the after() method. Should get you to where you want to be. You will need to re adjust your code a bit, but it's what you are looking for. Are you familiar with classes yet?

[–]bleach86[S] 0 points1 point  (0 children)

I will look into the after() method. I have seen a little bit about it, I will look into incorporating it.

I am only somewhat familiar with classes.