def update_caesar_edits(self): "Set the correct unit in conversion.py to the text we just received." text = self.caesar_edits["input"].toPlainText() output = self.caesar_edits["output"] message = rot(str(text), self.caesar_shift) output.setText(message)
def start_caesar_conversion(self): msg = " ".join(self.args["<msg>"]) shift = int(self.args["--shift"]) print rot(msg, shift)