Textbox not showing up in my game Tic Tac Toe python Textbox not showing up in my game Tic Tac Toe python tkinter tkinter

Textbox not showing up in my game Tic Tac Toe python


The doc says you need to pass the grid position when you use a grid layout :https://lawsie.github.io/guizero/layout/#grid-layout

Here is an example of the parameter you can pass:

# this will display the textbox after the buttonstext_box = TextBox(app, text="enter username", align="top",grid=[0,4,3,1])#  0 : column position (x)#  4 : row position    (y)#  3 : span 3 columns  (x span)#  1 : span 1 row      (y span)

If you want to display the 2 textbox on top, you can move all positions in the loop :

text_box = TextBox(app, text="enter username", align="top", grid=[0, 0, 3, 1])text_box2 = TextBox(app, text="enter username2", align="top", grid=[0, 1, 3, 1])z=0for x in range(3):    for y in range(2, 5):        buttonlist.append(PushButton(app, text=empty, args=str(z), grid=[x, y], command=clicked))        z+=1app.display()