'Simple validity check for menu file path'

def PathOk(self):

    pathOk = True
    path = self.path.get()
    path.strip()
    if (not path):
        tkMessageBox.showerror(title='File    Path    Error', message='No    help    file    path    specified.', parent=self)
        self.entryPath.focus_set()
        pathOk = False
    elif path.startswith(('www.', 'http')):
        pass
    else:
        if (path[:5] == 'file:'):
            path = path[5:]
        if (not os.path.exists(path)):
            tkMessageBox.showerror(title='File    Path    Error', message='Help    file    path    does    not    exist.', parent=self)
            self.entryPath.focus_set()
            pathOk = False
    return pathOk
