def _SetEntryFormDate(self, year, month, day, id=-1):
        if self._RefuseUnsavedModifications():
            return False
        
        date = self._MakeDateTime(year, month, day)
        self.cal.SetDate(date)
        firstid = self.entries.get_first_id(year, month, day)
        if id == -1:
            id = firstid
        self.entry_form_key = TKEntryKey(year, month, day, id)
        label = date.Format("%A, %B %d, %Y")
        if firstid is not None and (id is None or id > firstid):
            label += " (%d)" % self.entries.get_id_pos(year, month, day, id)
            self.frame.FindWindowById(self.prev_id).Enable(True)
        else:
            self.frame.FindWindowById(self.prev_id).Enable(False)
        if id is not None:
            self.frame.FindWindowById(self.next_id).Enable(True)
        else:
            self.frame.FindWindowById(self.next_id).Enable(False)
        self.frame.FindWindowById(self.date_id).SetLabel(label)
        text = subject = author = tags = ''
        entry = self.entries.get_entry(year, month, day, id)
        if entry is not None:
            text = entry.get_text()
            author = entry.get_author()
            subject = entry.get_subject()
            tags = ', '.join(entry.get_tags() or [])
        self.frame.FindWindowById(self.author_id).SetValue(author)
        self.frame.FindWindowById(self.subject_id).SetValue(subject)
        self.frame.FindWindowById(self.text_id).SetValue(text)
        self.frame.FindWindowById(self.tags_id).SetValue(tags)
        self._NotifyEntryLoaded(entry and True or False)
Set the data on the entry form.
dataset/ETHPy150Open cmpilato/thotkeeper/lib/tk_main.py/ThotKeeper._SetEntryFormDate