(self)
return line[i:]
Return the word prefix before the cursor.
Return the word prefix before the cursor.
Return the word prefix before the cursor .
def getprevword(self):
        "Return the word prefix before the cursor."
        line = self.text.get("insert linestart", "insert")
        i = len(line)
        while i > 0 and line[i-1] in self.wordchars:
            i = i-1
        return line[i:]
def getprevword ( self ) : line = self . text . get ( "insert linestart" , "insert" ) i = len ( line ) while i > 0 and line [ i - 1 ] in self . wordchars : i = i - 1 return line [ i : ]