MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / grab_any_where_off

Method grab_any_where_off

PySimpleGUI/PySimpleGUI.py:11991–12000  ·  view source on GitHub ↗

Turns off Grab Anywhere functionality AFTER a window has been created. Don't try on a window that's not yet been Finalized or Read.

(self)

Source from the content-addressed store, hash-verified

11989 self.TKroot.bind("<B1-Motion>", self._OnMotionGrabAnywhere)
11990
11991 def grab_any_where_off(self):
11992 """
11993 Turns off Grab Anywhere functionality AFTER a window has been created. Don't try on a window that's not yet
11994 been Finalized or Read.
11995 """
11996 if not self._is_window_created('tried Window.grab_any_where_off'):
11997 return
11998 self.TKroot.unbind("<ButtonPress-1>")
11999 self.TKroot.unbind("<ButtonRelease-1>")
12000 self.TKroot.unbind("<B1-Motion>")
12001
12002 def _user_bind_callback(self, bind_string, event, propagate=True):
12003 """

Callers

nothing calls this directly

Calls 2

_is_window_createdMethod · 0.95
unbindMethod · 0.45

Tested by

no test coverage detected