(self, widget)
return metadata
Fetch the relevant metadata for a widget which we'd need
        to recreate it when it's readded
Fetch the relevant metadata for a widget which we'd need
        to recreate it when it's readded
Fetch the relevant metadata for a widget which we d need to recreate it when it s readded
def get_child_metadata(self, widget):
        """Fetch the relevant metadata for a widget which we'd need
        to recreate it when it's readded"""
        metadata = {}
        metadata['tabnum'] = self.page_num(widget)
        label = self.get_tab_label(widget)
        if not label:
            dbg('unable to find label for widget: %s' % widget)
        elif label.get_custom_label():
            metadata['label'] = label.get_custom_label()
        else:
            dbg('don\'t grab the label as it was not customised')
        return metadata
def get_child_metadata ( self , widget ) : metadata = { } metadata [ 'tabnum' ] = self . page_num ( widget ) label = self . get_tab_label ( widget ) if not label : dbg ( 'unable to find label for widget: %s' % widget ) elif label . get_custom_label ( ) : metadata [ 'label' ] = label . get_custom_label ( ) else : dbg ( 'don\'t grab the label as it was not customised' ) return metadata