summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-03-26 16:11:40 (GMT)
committerBarry Warsaw <barry@python.org>1999-03-26 16:11:40 (GMT)
commitecb1a65f63ad12f7e789f1c6f9a8f5b9291d6613 (patch)
treed86d412f20f13c9365ffbb84955e8310117ee61d
parent61ba0721db1d3f31beb6a04dd8983114d1ee9d5b (diff)
downloadcpython-ecb1a65f63ad12f7e789f1c6f9a8f5b9291d6613.zip
cpython-ecb1a65f63ad12f7e789f1c6f9a8f5b9291d6613.tar.gz
cpython-ecb1a65f63ad12f7e789f1c6f9a8f5b9291d6613.tar.bz2
Helpwin.__init__(): The text widget should get focus.
-rw-r--r--Tools/pynche/PyncheWidget.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index 6e158af..5e691ec 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -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)