Manipulating Text with tkinter
so if i understand it correctly u want to just add some text, and then highlight it? id suggest u go to tutorials point, their pretty clear ob how to do it, heres the link: http://www.tutorialspoint.com/python/tk_text.htm
heres some code too:
from Tkinter import *def onclick(): passroot = Tk()text = Text(root)text.insert(INSERT, "Hello.....")text.insert(END, "Bye Bye.....")text.pack()text.tag_add("here", "1.0", "1.4")text.tag_add("start", "1.8", "1.13")text.tag_config("here", background="yellow", foreground="blue")text.tag_config("start", background="black", foreground="green")root.mainloop()
so to move the text the only selution i see is to make the text a variable and then add something like this:
text.config(text = ' '+'\n'+'\n'+our_variable_we_used_for_our_text)
this would insert some spaces and some newlines, not perfect but i dont think theres something else,
ps.
the \n stands for newline