def onEditDelPoint(self, event):
        dataframe = self.parent.getRecordService().get_filtered_points()
        try:
            self.isEmptySelection(dataframe)
        except EmptySelection:
            wx.MessageBox("There are no points to delete",
                        'Delete Points', wx.OK | wx.ICON_WARNING, parent=self.parent)
            return

        val = wx.MessageBox("You have chosen to delete the %s selected points.\nDo you want to continue?" % len(dataframe),
                            'Deleting Points', wx.YES_NO | wx.ICON_QUESTION, parent=self.parent)
        if val == 2:  #wx.ID_YES:
            self.parent.getRecordService().delete_points()
        event.Skip()
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/gui/mnuRibbon.py/mnuRibbon.onEditDelPoint/original