Jul-22-2019, 12:28 PM
Hi All,
I am trying to create a Darts Scoreboard Application using tkinter. I am very new to Python so just learning the ropes at the moment but having some trouble with something which is probably quite a simple issue. I am trying to display an entry as a label, but i am getting the following error :
Thanks!
Ash
I am trying to create a Darts Scoreboard Application using tkinter. I am very new to Python so just learning the ropes at the moment but having some trouble with something which is probably quite a simple issue. I am trying to display an entry as a label, but i am getting the following error :
import tkinter window = tkinter.Tk() window.title("Darts Score Board") def returnEntry(arg=None): """Gets the result from Entry and return it to the Label""" result = Player1Entry.get() resultLabel.config(text=result) #Player Names Player1Label = tkinter.Label(window, text = "Enter Player 1 Name:").grid(row = 0) Player1Entry = tkinter.Entry(window).grid(row = 0, column = 1) Player2Label = tkinter.Label(window, text = "Enter Player 2 Name:").grid(row=0,column =3) Player2Entry = tkinter.Entry(window).grid(row=0,column = 4) #Buttons submit_players = tkinter.Button(window, text='submit', command=returnEntry).grid(row=0,column=5) # Create and emplty Label to put the result in resultLabel = tkinter.Label(window, text = "").grid(row=1,column=0) window.mainloop()Would anyone be able to help, any advise is appreciated

Thanks!
Ash
