#NEWLINE# def add_field_with_label( self , key , label_description , field ) : #NEWLINE# #INDENT# '\n        Adds a field to the dialog together with a descriptive label and a unique identifier.\n\n        Note: You can access to the fields content calling the function GenericDialog.get_field(key).\n\n        Args:\n            key (str): The unique identifier for the field.\n            label_description (str): The string content of the description label.\n            field (Widget): The instance of the field Widget. It can be for example a TextInput or maybe a custom widget.\n        ' #NEWLINE# self . inputs [ key ] = field #NEWLINE# label = Label ( label_description ) #NEWLINE# label . style [ 'margin' ] = '0px 5px' #NEWLINE# label . style [ 'min-width' ] = '30%' #NEWLINE# container = HBox ( ) #NEWLINE# container . style [ 'overflow' ] = 'auto' #NEWLINE# container . style [ 'padding' ] = '3px' #NEWLINE# container . append ( label , key = ( 'lbl' + key ) ) #NEWLINE# container . append ( container . inputs [ key ] , key = key ) #NEWLINE# self . container . append ( container , key = key )