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

Method unbind

PySimpleGUI/PySimpleGUI.py:12047–12058  ·  view source on GitHub ↗

Used to remove tkinter events to a Window. This implementation removes ALL of the binds of the bind_string from the Window. If there are multiple binds for the Window itself, they will all be removed. This can be extended later if there is a need. :param bi

(self, bind_string)

Source from the content-addressed store, hash-verified

12045 self.user_bind_dict[bind_string] = key
12046
12047 def unbind(self, bind_string):
12048 """
12049 Used to remove tkinter events to a Window.
12050 This implementation removes ALL of the binds of the bind_string from the Window. If there
12051 are multiple binds for the Window itself, they will all be removed. This can be extended later if there
12052 is a need.
12053 :param bind_string: The string tkinter expected in its bind function
12054 :type bind_string: (str)
12055 """
12056 if not self._is_window_created('tried Window.unbind'):
12057 return
12058 self.TKroot.unbind(bind_string)
12059
12060 def _callback_main_debugger_window_create_keystroke(self, event):
12061 """

Callers 5

unbindMethod · 0.45
_grab_anywhere_offMethod · 0.45
grab_any_where_offMethod · 0.45
disable_debuggerMethod · 0.45

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected