[Python-checkins] CVS: python/dist/src/Tools/pynche TextViewer.py,2.11,2.12
Barry Warsaw
bwarsaw@users.sourceforge.net
2001年7月10日 14:45:01 -0700
Update of /cvsroot/python/python/dist/src/Tools/pynche
In directory usw-pr-cvs1:/tmp/cvs-serv30857
Modified Files:
TextViewer.py
Log Message:
__init__(): Use augmented assignments.
Index: TextViewer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/pynche/TextViewer.py,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -r2.11 -r2.12
*** TextViewer.py 2001年04月18日 03:52:54 2.11
--- TextViewer.py 2001年07月10日 21:44:59 2.12
***************
*** 5,9 ****
In the top part of the window is a standard text widget with some sample text
! in it. You are free to edit this text in any way you want (TBD: allow you to
change font characteristics). If you want changes in other viewers to update
text characteristics, turn on Track color changes.
--- 5,9 ----
In the top part of the window is a standard text widget with some sample text
! in it. You are free to edit this text in any way you want (BAW: allow you to
change font characteristics). If you want changes in other viewers to update
text characteristics, turn on Track color changes.
***************
*** 21,24 ****
--- 21,26 ----
ADDTOVIEW = 'Text Window...'
+
+
class TextViewer:
def __init__(self, switchboard, master=None):
***************
*** 92,96 ****
l.grid(row=row, column=0, sticky=E)
self.__labels.append(l)
! row = row + 1
col = 1
for text in ('Foreground', 'Background'):
--- 94,98 ----
l.grid(row=row, column=0, sticky=E)
self.__labels.append(l)
! row += 1
col = 1
for text in ('Foreground', 'Background'):
***************
*** 98,102 ****
l.grid(row=1, column=col)
self.__labels.append(l)
! col = col + 1
#
# radios
--- 100,104 ----
l.grid(row=1, column=col)
self.__labels.append(l)
! col += 1
#
# radios