def clear(self): # reset the tranaction map because it will now be invalid self.transaction_path_map = {} Gtk.TreeStore.clear(self)