code: def _teardown_features(self):
          
          features = self._features
          if not features:
              return
          if features & Feature.FocusTraversal:
              self.unhook_focus_traversal()
          if features & Feature.FocusEvents:
              self.unhook_focus_events()
          if features & Feature.DragEnabled:
              self.unhook_drag()
          if features & Feature.DropEnabled:
              self.unhook_drop()
  
          features = self._extra_features
          if features & GraphicFeature.WheelEvent:
              self.unhook_wheel()
          if features & GraphicFeature.DrawEvent:
              self.unhook_draw()
docs: Teardowns the advanced widget feature handlers.