Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 179048f

Browse files
committed
__init__(): Use augmented assignments.
1 parent 8e4fa07 commit 179048f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Tools/pynche/TextViewer.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
characteristics of a Tk text widget. This is an output viewer only.
55
66
In the top part of the window is a standard text widget with some sample text
7-
in it. You are free to edit this text in any way you want (TBD: allow you to
7+
in it. You are free to edit this text in any way you want (BAW: allow you to
88
change font characteristics). If you want changes in other viewers to update
99
text characteristics, turn on Track color changes.
1010
@@ -20,6 +20,8 @@
2020

2121
ADDTOVIEW = 'Text Window...'
2222

23+
24+
2325
class TextViewer:
2426
def __init__(self, switchboard, master=None):
2527
self.__sb = switchboard
@@ -91,13 +93,13 @@ def __init__(self, switchboard, master=None):
9193
l = Label(frame, text=text)
9294
l.grid(row=row, column=0, sticky=E)
9395
self.__labels.append(l)
94-
row = row + 1
96+
row += 1
9597
col = 1
9698
for text in ('Foreground', 'Background'):
9799
l = Label(frame, text=text)
98100
l.grid(row=1, column=col)
99101
self.__labels.append(l)
100-
col = col + 1
102+
col += 1
101103
#
102104
# radios
103105
self.__radios = []

0 commit comments

Comments
 (0)