<div><span style="color: rgb(0, 0, 0); font-size: 14px;">Thanks of your reply, but in both the case i obtain</span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;">Cornice object has not attribute parent</span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;">Luca</span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div><div></div><span style="color: rgb(0, 0, 0); font-size: 14px;"><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div><div><span style="color: rgb(0, 0, 0); font-size: 14px;"><br></span></div>> Hello i'm using eric as ide and i have two class</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> class Form(QWidget, Ui_Form):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> Class documentation goes here.</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> def __init__(self, parent=None):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> Constructor</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> @param parent reference to the parent widget</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> @type QWidget</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> super(Form,  self).__init__(parent)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.setupUi(self)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.tabWidget.setCurrentIndex(0)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> combo = QComboBox()</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.disegno = Cornice(Form)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> def on_pushButton_7_clicked(self):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> Slot documentation goes here.</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> # TODO: not implemented yet</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> #raise NotImplementedError</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.lista_dati_prova = [........]</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> lista_dati = self.dati_prova</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.lineEdit.setText('test')</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> self.disegno.cornice(lista_dati)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> class Cornice():</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> def __init__(self, parent=None):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> Constructor</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> @param parent reference to the parent widget</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> @type QWidget</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> """</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> lista_dati = []</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> def cornice(self, lista_dati):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> import math</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> freqfinale = lista_dati[0]</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> spostamento = lista_dati[2]</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> nome_cal = self.lineEdit.text()</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> How i can access to self.lineEdit without passing parameter from the </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> class Form and without using signal, but asking directly from Cornice </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">> class?</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">I'm not sure why you have those restrictions, but you probably mean to </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">do:</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">   self.disegno = Cornice(self)</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">To set the Cornice's parent to that instance of the Form rather than the </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">Form class.  But, Cornice doesn't inherit from QObject or otherwise save </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">the parent parameter.  If it did either of those then you could do one </span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">of the following (depending on which option you choose):</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">   self.parent.lineEdit.text()</span><br style="color: rgb(0, 0, 0); font-size: 14px;"><span style="color: rgb(0, 0, 0); font-size: 14px;">   self.parent().lineEdit.text()</span><br>