Fix for grab anywhere in password recipe

This commit is contained in:
MikeTheWatchGuy 2018-09-10 23:04:47 -04:00
parent 4200b78bd2
commit 6f3a8ddb2b
1 changed files with 2 additions and 6 deletions

View File

@ -677,7 +677,7 @@ The Canvas Element is one of the few tkinter objects that are directly accessibl
canvas.TKCanvas.itemconfig(cir, fill="Red")
## Input Element Update
## Keypad Touchscreen Entry - Input Element Update
This Recipe implements a Raspberry Pi touchscreen based keypad entry. As the digits are entered using the buttons, the Input Element above it is updated with the input digits.
There are a number of features used in this Recipe including:
@ -961,7 +961,7 @@ Use the upper half to generate your hash code. Then paste it into the code in t
]
form = sg.FlexForm('SHA Generator', auto_size_text=False, default_element_size=(10,1),
text_justification='r', return_keyboard_events=True)
text_justification='r', return_keyboard_events=True, grab_anywhere=False)
form.Layout(layout)
while True:
@ -1160,10 +1160,6 @@ Much of the code is handling the button states in a fancy way. It could be much
## Menus
Menus are nothing more than buttons that live in a menu-bar. When you click on a menu item, you get back a "button" with that menu item's text, just as you would had that text been on a button.