def encrypting(self):
        "Encrypting boolean stating current operations mode."
        return {'encode': True, 'decode': False}[self.mode_var.get()]
Encrypting boolean stating current operations mode.
recipes/Python/578076_Markov/recipe-578076.py