Tkinter.Text can never be empty?

Harry Pehkonen harry.pehkonen at hotpop.com
Fri Sep 19 11:34:29 EDT 2003


> | >>> t = Tkinter.Text()
> | >>> t.get(0.0, Tkinter.END)
>  '\n'
> | My question is:  Is there *always* a trailing \n, is this a bug, or am
> | I doing something silly?
> 
> Nope, this is one of the idiosyncrasies of our friend the Text widget;
> there's always this immortal LF at the end.
> 
> Vincent Wehren

Thanks, Vincent :D

Harry.




More information about the Python-list mailing list