I tried doing the same thing for the .ico file is this correct?
From the other thread:
cur=windll.user32.LoadCursorFromFileA(r'C:\WINDOWS\Cursors\banana.ani')
I tried:
cur=windll.user32.LoadCursorFromFileA(System.AppPath + 'data\file.ico')
The "r" in front of the string indicates "raw", which is an instruction for python not to alter the string. Otherwise it is scanned for escape sequences that start with a backslash.
Try
cur=windll.user32.LoadCursorFromFileA(System.AppPath + r'data\file.ico')
or
cur=windll.user32.LoadCursorFromFileA(System.AppPath + 'data\\file.ico')