I am Python 3 noob creating a checkers game, I have a bunch of functions... and my game's loop is as follows:
while EndGame==0:
    PrintBoard()
    PrintBoardGui()
    print("################","\n","Player 1","\n","################","\n")
    Player=1
    PlayerSelectPiece()
    MovePiece()
    PrintBoard()
    PrintBoardGui()
    print("################","\n","Player 2","\n","################","\n")
    Player=2
    if NbrPlayer==2:
        PlayerSelectPiece()
    else:
        AiSelectPiece()
    MovePiece()
PrintBoardGui() that I run at the beggining of each turn and creates a Tkinter window and draws the board on a new Canvas in a Tkinter Frame.
After that, I have to close the window in order for the program to continue.
I know this is a sub-optimal solution.
I have looked around trying to understand Tkinter's loops and read a bit about the after() function but i really don't know how I could implement it in my code.
Ultimatly I would like my Tkinter window to stay open (mabye disabled or something) while I input stuff in the console to move the pieces. Can you help me?