def METHOD_NAME(self, event=None):
    if self.MenuOk() and self.PathOk():
        self.result = (self.menu.get().strip(),
                       self.path.get().strip())
        if sys.platform == 'darwin':
            path = self.result[1]
            if path.startswith(('www', 'file:', 'http:')):
                pass
            else:
                # Mac Safari insists on using the URI form for local files
                self.result = list(self.result)
                self.result[1] = "file://" + path
        self.grab_release()
        self.destroy()