def METHOD_NAME(self, layout):
    # Create the Label
    label = QtWidgets.QLabel()
    label.setText('Debugger command:')
    # Create the editor.
    self.line_edit = w = QtWidgets.QLineEdit()
    w.setStyleSheet('background: white; color: black;')
    w.returnPressed.connect(self.debug_input)
    # Add the widgets to a new layout.
    layout2 = QtWidgets.QVBoxLayout()
    layout2.addWidget(label)
    layout2.addWidget(w)
    layout.addLayout(layout2)