Merge pull request #1552 from PySimpleGUI/Dev-latest
New implementations for Window.Disable and Window.Enable
This commit is contained in:
commit
deb1d5c1e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue