0

I am trying to prompt the user for their name so it can be displayed in the GUI of the program I am building for Uni, problem is the ttt = ... won't accept anything other than a string in quotation marks without crashing.

My code looks like this:

import tic_tac_toe_gui
import tkinter
# The object of the TicTacToeGUI class
# that renders the GUI.
# You can use this object to access the
# methods listed in the specification.

display_details() #displays author's details

name = input("Please enter your name here: ")
ttt = tic_tac_toe_gui.TicTacToeGUI(name) #defining GUI title bar

By my understanding, it should take the input, assign the string to the variable and thus allowing the user input to be displayed in the GUI.

NOTE: Cannot edit the GUI as it was built by the tutor.

Let me know if you'd like to see the GUI code.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
NinjaRawr
  • 1
  • 1

0 Answers0