From 3159e1e1efb87af30b34732ccc42cbd972ba1116 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 8 Oct 1996 14:07:21 +0000 Subject: Change to always call list.append with a single argument. This does not mean I still support this code!!! --- Lib/lib-stdwin/tablewin.py | 2 +- Lib/stdwin/tablewin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/lib-stdwin/tablewin.py b/Lib/lib-stdwin/tablewin.py index eba161d..43ce809 100644 --- a/Lib/lib-stdwin/tablewin.py +++ b/Lib/lib-stdwin/tablewin.py @@ -229,7 +229,7 @@ def demo(): # Demonstration col1 = [('a2', da), ('bbb2', da)] col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)] col3 = [] - for i in range(1, 31): col3.append('xxx' + `i`, da) + for i in range(1, 31): col3.append(('xxx' + `i`, da)) data = [col0, col1, col2, col3] w = open('tablewin.demo', data) gwin.mainloop() diff --git a/Lib/stdwin/tablewin.py b/Lib/stdwin/tablewin.py index eba161d..43ce809 100755 --- a/Lib/stdwin/tablewin.py +++ b/Lib/stdwin/tablewin.py @@ -229,7 +229,7 @@ def demo(): # Demonstration col1 = [('a2', da), ('bbb2', da)] col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)] col3 = [] - for i in range(1, 31): col3.append('xxx' + `i`, da) + for i in range(1, 31): col3.append(('xxx' + `i`, da)) data = [col0, col1, col2, col3] w = open('tablewin.demo', data) gwin.mainloop() -- cgit v0.12