diff options
author | Barry Warsaw <barry@python.org> | 2001-07-10 21:44:59 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-07-10 21:44:59 (GMT) |
commit | 179048fc5da82c1b0f9b88954773737dc6e30692 (patch) | |
tree | 45ac96106bc17b8315f8636c20f53c3d5c5ad203 /Tools | |
parent | 8e4fa072f7e33f49c000d8edff172920bfd0f5ff (diff) | |
download | cpython-179048fc5da82c1b0f9b88954773737dc6e30692.zip cpython-179048fc5da82c1b0f9b88954773737dc6e30692.tar.gz cpython-179048fc5da82c1b0f9b88954773737dc6e30692.tar.bz2 |
__init__(): Use augmented assignments.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/pynche/TextViewer.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/pynche/TextViewer.py b/Tools/pynche/TextViewer.py index 30a87f7..456bd96 100644 --- a/Tools/pynche/TextViewer.py +++ b/Tools/pynche/TextViewer.py @@ -4,7 +4,7 @@ The TextViewer allows you to see how the selected color would affect various characteristics of a Tk text widget. This is an output viewer only. 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 +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. @@ -20,6 +20,8 @@ import ColorDB ADDTOVIEW = 'Text Window...' + + class TextViewer: def __init__(self, switchboard, master=None): self.__sb = switchboard @@ -91,13 +93,13 @@ and choosing a color.''')) l = Label(frame, text=text) l.grid(row=row, column=0, sticky=E) self.__labels.append(l) - row = row + 1 + row += 1 col = 1 for text in ('Foreground', 'Background'): l = Label(frame, text=text) l.grid(row=1, column=col) self.__labels.append(l) - col = col + 1 + col += 1 # # radios self.__radios = [] |