[python-win32] pywin32 programming error on Win7 with shell.SHGetDesktopFolder, desktop.BindToObject, desktop.GetDisplayNameOf

2013-11-08 Thread iMath
When running the following code on WinXP , all is fine , -- from win32com.shell import shell def launch_file_explorer(path, files): folder_pidl = shell.SHILCreateFromPath(path,0)[0] desktop = shell.SHGetDesktopFolder()

[python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-13 Thread iMath
I want to build a cross-platform application ,I used a windows API called SHOpenFolderAndSelectItems(). Although I found example called it by pywin32,but pywin32 is not available on Linux , I don't want to call a Windows API on linux,just don't want to make another code version for Linux,so I wo

[python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-15 Thread iMath
I want to build a cross-platform application ,I used a windows API called SHOpenFolderAndSelectItems(). Although I found example called it by pywin32,but pywin32 is not available on Linux , I don't want to call a Windows API on linux,just don't want to make another code version for Linux,so I wo

[python-win32] not defined ?SPIF_UPDATEINIFILE, SPIF_SENDCHANGE, SPIF_SENDWININICHANGE

2015-01-22 Thread iMath
it seems ‍SPIF_UPDATEINIFILE, SPIF_SENDCHANGE, SPIF_SENDWININICHANGE not defined in Pywin32, what should do if I want to use this constant ? ‍what the value of each ?___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/

[python-win32] some shellcon constants have not been implemented yet ?

2017-01-07 Thread iMath
some shellcon constants have not been implemented yet ? >>> from win32com.shell import shell, shellcon >>> shellcon.WPSTYLE_STRETCH 2 >>> shellcon.WPSTYLE_KEEPASPECT Traceback (most recent call last): File "", line 1, in shellcon.WPSTYLE_KEEPASPECT AttributeError: module 'win32com.shell.sh