(self)
| 102 | self.handlerid = None |
| 103 | |
| 104 | def __del__(self): |
| 105 | if self.handlerid: |
| 106 | try: |
| 107 | self.widget.unbind(self.widgetinst, self.sequence, |
| 108 | self.handlerid) |
| 109 | except tkinter.TclError as e: |
| 110 | if not APPLICATION_GONE in e.args[0]: |
| 111 | raise |
| 112 | |
| 113 | # An int in range(1 << len(_modifiers)) represents a combination of modifiers |
| 114 | # (if the least significant bit is on, _modifiers[0] is on, and so on). |