def comment(self) -> None:
        """
        Set the comment for this patch.
        """
        dlg = InputPromptDialog("Set Patch Comment", "Patch comment:", self.patch.comment, parent=self.view)
        dlg.exec_()
        if dlg.result:
            self.patch.comment = dlg.result
            pm = self.view.instance.patches
            pm.am_event()

        Set the comment for this patch.
        
angrmanagement/ui/views/hex_view.py