code: def buildlist(self, enabled):
          
          choice = []
          for item in self.data:
              choice.append((item, False))
          for item in enabled:
              choice.append((item, True))
          items = [(tag, tag, sta) for (tag, sta) in choice]
          code, self.tags = self.d.buildlist(
              text=self.text, items=items, visit_items=True, item_help=False,
              title=self.title)
          if code == "ok":
              self.unicode_to_string()
              return self.ununicode
          if code in ["cancel", "esc"]:
              self.exit()
docs: Run dialog buildlist