def on_draw(self, widget, context): context.push_group() LayoutView.draw(self, widget, context) context.pop_group_to_source() context.paint_with_alpha(self._opacity)
def _on_draw(self, widget, context): decorated = LayoutView.draw(self, widget, context)