Closed nickandwolf closed 1 year ago
yes, the signal is missing, I will add it soon. I am keeping the textEdit a little on hold because I am slowly implementing some features that are needed if you want to use it in a proper codeEditor/Viewer (ttkode) you can workaround it using the textDocument signal:
self.te = ttk.TTkTextEdit(parent= (tef:=ttk.TTkFrame(parent=self.root,
pos=(0,6),size=(42,7),border=True)),
document=None,pos=(0,0),size=(41,5))
self.te.setReadOnly(False)
self.te.setLineWrapMode(ttk.TTkK.WidgetWidth)
self.te.setWordWrapMode(ttk.TTkK.WordWrap)
self.te.setText(self.lifepath.familyBackground)
# the textChanged api will forward in the next release the document contentsChanged signal
self.te.document().contentsChanged.connect(self.Unsaved) #here's where I fall flat.
Hello, I am trying to detect if the user has change the contents of a TextEdit widget but I am having a hard time figuring it out. Thank you again! I'll soon have something to show for all this effort.