[Wnd-users] comctl32 version check in wintypes.py
Status: Alpha
Brought to you by:
jurner
|
From: Dave B. <da...@py...> - 2005-05-18 02:07:27
|
Hello,
This may have already been brought up, but when I run any WND programs on WinXP
the version check on comctl32 in wintypes.py fails because I have version 6.0,
and the conversion to a string makes the test fail.
Since tuples are comparable, I got it to work by changing:
VER_COMCTL = int('%d%d' % (result.dwMajorVersion,result.dwMinorVersion))
if VER_COMCTL < 471:
to
VER_COMCTL = (result.dwMajorVersion, result.dwMinorVersion)
if VER_COMCTL < (4,71):
-Dave
|