(self, widget, title)
Pass a title change up the widget stack
Pass a title change up the widget stack
Pass a title change up the widget stack
def propagate_title_change(self, widget, title):
        """Pass a title change up the widget stack"""
        maker = Factory()
        parent = self.get_parent()
        title = widget.get_window_title()

        if maker.isinstance(self, 'Notebook'):
            self.update_tab_label_text(widget, title)
        elif maker.isinstance(self, 'Window'):
            self.title.set_title(widget, title)

        if maker.isinstance(parent, 'Container'):
            parent.propagate_title_change(widget, title)
def propagate_title_change ( self , widget , title ) : maker = Factory ( ) parent = self . get_parent ( ) title = widget . get_window_title ( ) if maker . isinstance ( self , 'Notebook' ) : self . update_tab_label_text ( widget , title ) elif maker . isinstance ( self , 'Window' ) : self . title . set_title ( widget , title ) if maker . isinstance ( parent , 'Container' ) : parent . propagate_title_change ( widget , title )