def OnSaveAs(self, 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

        dlg = wx.FileDialog(self, message="Save As...",
                            defaultDir=os.getcwd(), 
                            defaultFile="",
                            wildcard=
                                ("DAG files (*.dag; *.zip; *.bz2; *.gz)|*.dag;*.zip;*.bz2;*.gz|"
                                 "All files (*.*)|*.*"),
                            style=wx.SAVE | wx.CHANGE_DIR)
        try:
            if dlg.ShowModal() == wx.ID_OK:
                self.Save(dlg.GetPaths()[0])
        finally:
            dlg.Destroy()
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.OnSaveAs/original