]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Helpwin.__init__(): The text widget should get focus.
authorBarry Warsaw <barry@python.org>
Fri, 26 Mar 1999 16:11:40 +0000 (16:11 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 26 Mar 1999 16:11:40 +0000 (16:11 +0000)
Tools/pynche/PyncheWidget.py

index 6e158afcb93f0c9513ac4a1814bcb9a0eb24db12..5e691ece29a8ee73d11ab56d564b3def60e6952f 100644 (file)
@@ -227,6 +227,7 @@ class Helpwin:
 
         self.__text = text = Text(root, relief=SUNKEN,
                                   width=80, height=24)
+        self.__text.focus_set()
         text.insert(0.0, contents)
         scrollbar = Scrollbar(root)
         scrollbar.pack(fill=Y, side=RIGHT)