def on_comment_entered(self):
        """The user has typed a comment"""
        text_edit = self.findChild(QtWidgets.QWidget, "CommentBox")
        comment = text_edit.text()

        # Store within context
        context = self.controller.context
        context.data["comment"] = comment

        placeholder = self.findChild(QtWidgets.QLabel, "CommentPlaceholder")
        placeholder.setVisible(not comment)
def on_comment_entered ( self ) : text_edit = self . findChild ( QtWidgets . QWidget , "CommentBox" ) comment = text_edit . text ( ) context = self . controller . context context . data [ "comment" ] = comment placeholder = self . findChild ( QtWidgets . QLabel , "CommentPlaceholder" ) placeholder . setVisible ( not comment )
The user has typed a comment