Helpwin.__init__(): The text widget should get focus.

This commit is contained in:
Barry Warsaw 1999-03-26 16:11:40 +00:00
parent 61ba0721db
commit ecb1a65f63

View 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)