def set_overlay(self, o, **kwargs): self.overlay = overlay.SimpleOverlay( self, o, self.top_widget(), o.width, **kwargs, )
def overlay(self, widget, **kwargs): signals.push_view_state.send(self, window=overlay.SimpleOverlay( self, widget, self.loop.widget, widget.width, **kwargs))