[Tutor] Text.index()

Lie Ryan lie.1296 at gmail.com
Tue Jun 2 12:48:07 CEST 2009


prasad rao wrote:
> Hello
>  I created a gui app.I am finding it impossible to
> use Text.insert().please some one give an example of using it.
>  

In Tkinter.Text, insert's argument is a string of the form
"line.collumn" instead of a number.

>>> tb.insert("2.6", 'abc')


you usually use %-formatting to create such string.



More information about the Tutor mailing list