python - how to make a mulit line input the size of the tkinter window? -


i trying make multiline input field in tkinter, needs full size of screen. have tried use root.winfo.height() , root.winfo.width()

entry(root, height=root.winfo_height, width=root.winfo_width.pack(side=top,padx=10,pady=10) 

but works when window loads, , that's no good

see can do, gook luck!

you should use text widget instead of entry widget. here simple example:

from tkinter import *  app = tk()  text_widget = text(app) text_widget.pack(expand = true)  #this make text widget fill entire window  app.mainloop() 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -