Browse Source

fix(TTkLineEdit): paste str (#610)

main
slook 2 weeks ago committed by GitHub
parent
commit
0006afdf5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libs/pyTermTk/TermTk/TTkWidgets/lineedit.py

2
libs/pyTermTk/TermTk/TTkWidgets/lineedit.py

@ -353,7 +353,7 @@ class TTkLineEdit(TTkWidget):
''' Paste text from the clipboard at the cursor position ''' Paste text from the clipboard at the cursor position
''' '''
txt = self._clipboard.text() txt = self._clipboard.text()
self.pasteEvent(txt) self.pasteEvent(str(txt))
def pasteEvent(self, txt:str): def pasteEvent(self, txt:str):
''' Handle paste event with custom text ''' Handle paste event with custom text

Loading…
Cancel
Save