From a21c60e9e67695f4b2837c873d4f050727cffec9 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 29 May 2019 14:10:42 -0400 Subject: [PATCH] New Window methods - GrabAnywhereOn, GrabAnywhereOff --- PySimpleGUI.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index ed36ed70..fd7dc235 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -4213,6 +4213,16 @@ class Window: except: print('Transparent color not supported on this platform (windows only)') + def GrabAnyWhereOn(self): + self.TKroot.bind("", self.StartMove) + self.TKroot.bind("", self.StopMove) + self.TKroot.bind("", self.OnMotion) + + def GrabAnyWhereOff(self): + self.TKroot.unbind("") + self.TKroot.unbind("") + self.TKroot.unbind("") + def __enter__(self): return self