Browse Source

fix(textdocument): TypeError exception in characterCount() method (#477)

pull/481/head
slook 5 months ago committed by GitHub
parent
commit
8b01817024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libs/pyTermTk/TermTk/TTkGui/textdocument.py

2
libs/pyTermTk/TermTk/TTkGui/textdocument.py

@ -236,7 +236,7 @@ class TTkTextDocument():
return len(self._dataLines)
def characterCount(self):
return sum([len[x] for x in self._dataLines])+self.lineCount()
return sum([len(x) for x in self._dataLines])+self.lineCount()
def clear(self):
self.setText(self._default_init_text)

Loading…
Cancel
Save