Feb-19-2024, 06:58 PM
(This post was last modified: Feb-19-2024, 06:58 PM by Axel_Erfurt.)
That should be enough.
def getTextInTextBox(self): textRecovering = self.sender() print(f"Text in the textbox is '{textRecovering.text()}'") return textRecovering.text()or (tested in PyQt6)
def getTextInTextBox(self, text): print(f"Text in the textbox is '{text}'") return text