Re: [Tutor] Text.index()

2009-06-02 Thread Alan Gauld
"prasad rao" wrote I created a gui app.I am finding it impossible to use Text.insert().please some one give an example of using it. Look in my tutorial at event driven programming and the Case study. Both use the Text widget. For more detailed info try this introduction: http://www.linu

Re: [Tutor] Text.index()

2009-06-02 Thread Lie Ryan
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 %-format

[Tutor] Text.index()

2009-06-02 Thread prasad rao
Hello I created a gui app.I am finding it impossible to use Text.insert().please some one give an example of using it. def fshow(): x=entry1.get() try: value1,value2=x.split(',') text.insert(len(myfiles(value1,value2)),myfiles(value1,value2)) except: text.insert(