def rebind(self, tks):
self._tks = tks<EOL>for tk in self._tks:<EOL><INDENT>tk.unbind_all(self._tk_event)<EOL>func_id = tk.bind(self._tk_event, self._event_callback)<EOL>self._func_ids.append(func_id)<EOL><DEDENT>
Rebinds the tk event, only used if a widget has been destroyed
and recreated.