code: def set_code(self, code):
          
  
          # If string representations of False are in the code
          # then it has to be converted explicitly
  
          if code == "False" or code == "0":
              code = False
  
          self.SetValue(bool(code))
docs: Sets widget from code string
  
          Parameters
          ----------
          code: String
          \tCode representation of bool value