def METHOD_NAME(self, *l):
    path = self.export_popup.ids.filename.text
    if not path:
        self.export_popup.dismiss()
        self.info_popup.text = 'Missing filename'
        self.info_popup.open()
        return
    elif not path.lower().endswith('.kg'):
        path += '.kg'
    self.save_selection_to_file(path)
    self.export_popup.dismiss()
    self.info_popup.text = 'Gestures exported!'
    self.info_popup.open()