[pywin32-checkins] pywin32/com/win32com/client selecttlb.py, 1.9, 1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-10-17 03:51:54
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26805/com/win32com/client Modified Files: selecttlb.py Log Message: Fallout from the change of .major and .minor in a tlbspec to be strings instead of integers. The code populating the dialog now must make an assumption about the radix Index: selecttlb.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/selecttlb.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** selecttlb.py 25 Aug 2007 05:09:21 -0000 1.9 --- selecttlb.py 17 Oct 2007 03:51:57 -0000 1.10 *************** *** 144,147 **** --- 144,151 ---- import pywin.dialogs.list items = EnumTlbs(excludeFlags) + # fixup versions - we assume hex (see __init__ above) + for i in items: + i.major = int(i.major, 16) + i.minor = int(i.minor, 16) items.sort() rc = pywin.dialogs.list.SelectFromLists(title, items, ["Type Library"]) |