libqtile/widget/currentlayout.py
def _setup_hooks(self):
        """
        Listens for layout change and performs a redraw when it occurs.
        """
        def hook_response(layout, group):
            if group.screen is not None and group.screen == self.bar.screen:
                self.current_layout = layout.name
                self.bar.draw()
        hook.subscribe.layout_change(hook_response)

        Listens for layout change and performs a redraw when it occurs.
        
Listens for layout change and performs a redraw when it occurs.
Listens for layout change and performs a redraw when it occurs .
def _setup_hooks(self):
        def hook_response(layout, group):
            if group.screen is not None and group.screen == self.bar.screen:
                self.current_layout = layout.name
                self.bar.draw()
        hook.subscribe.layout_change(hook_response)
def _setup_hooks ( self ) : def hook_response ( layout , group ) : if group . screen is not None and group . screen == self . bar . screen : self . current_layout = layout . name self . bar . draw ( ) hook . subscribe . layout_change ( hook_response )
Listens for layout change and performs a redraw when it occurs.
Listens for layout change and performs a redraw when it occurs .
"""
        Listens for layout change and performs a redraw when it occurs.
        """
self