Update of /cvsroot/pywin32/pywin32/win32/Demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15884/win32/Demos
Modified Files:
Tag: py3k
win32gui_dialog.py win32rcparser_demo.py
Log Message:
restore capability for dialog header to use None as ext. style for b/w compat.
Index: win32rcparser_demo.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32rcparser_demo.py,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -C2 -d -r1.2.4.1 -r1.2.4.2
*** win32rcparser_demo.py 29 Aug 2008 04:59:23 -0000 1.2.4.1
--- win32rcparser_demo.py 4 Dec 2008 01:07:20 -0000 1.2.4.2
***************
*** 64,68 ****
# Load the .rc file.
resources = win32rcparser.Parse(g_rcname)
! for id, ddef in list(resources.dialogs.items()):
print("Displaying dialog", id)
w=DemoWindow(ddef)
--- 64,68 ----
# Load the .rc file.
resources = win32rcparser.Parse(g_rcname)
! for id, ddef in resources.dialogs.items():
print("Displaying dialog", id)
w=DemoWindow(ddef)
Index: win32gui_dialog.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32gui_dialog.py,v
retrieving revision 1.7.2.3
retrieving revision 1.7.2.4
diff -C2 -d -r1.7.2.3 -r1.7.2.4
*** win32gui_dialog.py 3 Oct 2008 01:09:55 -0000 1.7.2.3
--- win32gui_dialog.py 4 Dec 2008 01:07:20 -0000 1.7.2.4
***************
*** 44,48 ****
else:
full_fmt += fmt
! for name, val in list(kw.items()):
if name not in self.__dict__:
raise ValueError("LVITEM structures do not have an item '%s'" % (name,))
--- 44,48 ----
else:
full_fmt += fmt
! for name, val in kw.items():
if name not in self.__dict__:
raise ValueError("LVITEM structures do not have an item '%s'" % (name,))
***************
*** 163,167 ****
# Window frame and title
! dlg = [ [title, (0, 0, 210, 250), style, 0, (8, "MS Sans Serif"), None, dlgClassName], ]
# ID label and text box
--- 163,167 ----
# Window frame and title
! dlg = [ [title, (0, 0, 210, 250), style, None, (8, "MS Sans Serif"), None, dlgClassName], ]
# ID label and text box
|