def OnSave(self, event):
        if self._filename is None:
            return self.OnSaveAs(event)

        data = self._dag_tree.GetPyData(self._dag_tree.GetRootItem())
        if not data:
            msg = wx.MessageDialog(self, "Nothing to save", "Nothing to save",  wx.OK | wx.ICON_INFORMATION)
            msg.ShowModal()
            msg.Destroy()
            return

        self.Save(self._filename)
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.OnSave/original