unexpect behavior from my added method

Terrence M. Brannon (brannon@jove.cs.caltech.edu)
Fri, 31 Jul 92 12:13:00 PDT

I need to read the value that the user inputs into a TextEdit widget.
lib/TextEdit.py in the Python distribution does not have a gettext()
method only a settext() method, so I wrote the following:

def gettext(self):
self.editor.gettext()

However instead of just getting the text of the TextEdit widget, I get
the word None also. IN other words if the user has input as 12 into
the TextEdit widget and afterwards I do this:

tmp = [text_edit_widget.gettext()]
print tmp[0]

the output is:

'12'
None

Instead of just '12' as I would think that it should be

love ,

Terrence Brannon -- brannon@jove.cs.caltech.edu