Merge pull request #1552 from PySimpleGUI/Dev-latest

New implementations for Window.Disable and Window.Enable
This commit is contained in:
MikeTheWatchGuy 2019-06-13 16:18:18 -04:00 committed by GitHub
commit deb1d5c1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -4213,10 +4213,12 @@ class Window:
return
def Disable(self):
self.TKroot.grab_set_global()
self.TKroot.attributes('-disabled', 1)
# self.TKroot.grab_set_global()
def Enable(self):
self.TKroot.grab_release()
self.TKroot.attributes('-disabled', 0)
# self.TKroot.grab_release()
def Hide(self):
self._Hidden = True