]> granicus.if.org Git - python/commitdiff
Add a SELECTION to the pre-inserted text
authorBarry Warsaw <barry@python.org>
Tue, 6 Oct 1998 21:40:22 +0000 (21:40 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 6 Oct 1998 21:40:22 +0000 (21:40 +0000)
Tools/pynche/TextViewer.py

index 316bd1537fca3c34d31082a3e876b6faffde48d2..254e7e0478e492ce75fc5d9f0230c3552f3b24d6 100644 (file)
@@ -41,7 +41,12 @@ class TextViewer:
 Insert some stuff here and play
 with the buttons below to see
 how the colors interact in
-textual displays.''')
+textual displays.
+
+See how the selection can also
+be affected by tickling the buttons
+and choosing a color.''')
+        self.__text.tag_add(SEL, 6.0, END)
         #
         # variables
         self.__trackp = BooleanVar()