mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Helpwin.__init__(): The text widget should get focus.
This commit is contained in:
parent
61ba0721db
commit
ecb1a65f63
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue