Python Tkinter ScrolledText -


i'm trying make tkinter entry box, need more space 1 line. seems

self.scroll = scrolledtext.scrolledtext(self.tk).pack() 

is best looking way right now, dont know how inputted text self.scroll , use else, theres no clear documentation on either. know?

mistake:

self.scroll = scrolledtext.scrolledtext(self.tk).pack() 

this way assign pack() result self.scroll (not scrolledtext)
, pack() returns none.

always:

self.scroll = scrolledtext.scrolledtext(self.tk) self.scroll.pack() 

and see standard text widget documentation how get/set text.

from tkinter import * import tkinter.scrolledtext scrolledtext  master = tk()  st = scrolledtext.scrolledtext(master) st.pack()  st.insert(insert, "some text") st.insert(end, " in scrolledtext")  print( st.get(1.0, end) )  master.mainloop() 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -