#NEWLINE# def close( self ) : #NEWLINE# #INDENT# for name in self . dict : #NEWLINE# #INDENT# self . unregister ( name ) #NEWLINE# #UNINDENT# widget = self . widget #NEWLINE# del self . widget #NEWLINE# orig = self . orig #NEWLINE# del self . orig #NEWLINE# tk = widget . tk #NEWLINE# w = widget . _w #NEWLINE# tk . deletecommand ( w ) #NEWLINE# tk . call ( 'rename' , orig , w )