(self)
| 236 | self.doafterhandler.append(doit) |
| 237 | |
| 238 | def __del__(self): |
| 239 | for seq, id in self.handlerids: |
| 240 | try: |
| 241 | self.widget.unbind(self.widgetinst, seq, id) |
| 242 | except tkinter.TclError as e: |
| 243 | if not APPLICATION_GONE in e.args[0]: |
| 244 | raise |
| 245 | |
| 246 | # define the list of event types to be handled by MultiEvent. the order is |
| 247 | # compatible with the definition of event type constants. |