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

Method unbind

PySimpleGUI/PySimpleGUI.py:1474–1483  ·  view source on GitHub ↗

Removes a previously bound tkinter event from an Element. :param bind_string: The string tkinter expected in its bind function :type bind_string: (str)

(self, bind_string)

Source from the content-addressed store, hash-verified

1472 self.user_bind_dict[bind_string] = key_modifier
1473
1474 def unbind(self, bind_string):
1475 """
1476 Removes a previously bound tkinter event from an Element.
1477 :param bind_string: The string tkinter expected in its bind function
1478 :type bind_string: (str)
1479 """
1480 if not self._widget_was_created(): # if widget hasn't been created yet, then don't allow
1481 return
1482 self.Widget.unbind(bind_string)
1483 self.user_bind_dict.pop(bind_string, None)
1484
1485 def set_tooltip(self, tooltip_text):
1486 """

Callers

nothing calls this directly

Calls 2

_widget_was_createdMethod · 0.95
unbindMethod · 0.45

Tested by

no test coverage detected