Ask coding questions

← Back to all posts
Tkinter entry not displaying
isaiah08 (87)

Go to the file menu, then click new file. Why does no entry appear? Thank you!

Comments
hotnewtop
tankerguy1917 (178)

Could it be because the create file function is empty?
And on line 29, Button(self, text='Create', command=self.create_file) it looks like you are trying to call the create file function, but you forgot the parenthesis
Button(self, text='Create', command=self.create_file())
I'm not to experienced with tkinter though, so if that is not the problem, I can't really help much more.

isaiah08 (87)

no. if i use parenthesis, that means it runs now. I want to give Button the function, but only have it run when someone clicks the button. @tankerguy1917