def _on_before_selection(self, widget, model_index, style_options):
    self._on_before_paint(widget, model_index, style_options)
def _on_before_selection(self, widget, model_index, style_options):
    self._on_before_paint(widget, model_index, style_options)