def unregister(self): if self.screen and self.mouselistener: sync(self.screen.nomouselisten(self)) ContainerWidget.unregister(self)