tkinter entry/text widget

Berlin Brown bigbinc097_DONT_SPAM at
Tue Mar 16 01:43:26 CET 2004

bigbinc wrote:

> I have used the 'entry' tk widget to get text values, I am now using
> 'Text' but I cant seem to use 'get' method.  The TK docs say use
> get(index1, index2), I tried numbers and get an error
> print self.textMain.get(1,255)
> ceback (most recent call last):
> ile "C:\Python23\lib\lib-tk\", line 1345, in __call
>  return self.func(*args)
> ile "", line 60, in saveFile
>  print self.textMain.get("1","255")
> ile "C:\Python23\lib\lib-tk\", line 2868, in get
>  return, 'get', index1, index2)
> Error: bad text index "1"

I was asking for it, I need a couple more months with the language before I
ask the silly newbie questions.  I asked anyway.

Berlin Brown
bigbinc at

More information about the Python-list mailing list