def OnNext(self, event):
        data = self._dag_tree.GetPyData(self._dag_tree.GetRootItem())
        if not data:
            return
        ctx, node = data

        date = ctx.get_date()
        date += timedelta(days=1)
        if date.weekday() > 4:
            date += timedelta(days=7-date.weekday())

        self.GetStatusBar().SetStatusText("Setting date...")
        try:
            ctx.set_date(date)
            self.GetStatusBar().SetStatusText("Ready")
        except Exception:
            # any errors he should be re-raised by calculate
            pass

        self.Calculate()
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.OnNext/original