<div dir="ltr">I continue my work and I discover another problem.I have a 3 level nested form (granparent-parent and child). <div>If I don't use global variables when I select a record in child to parent and then one in parent, QGIS raise an error:<br></div><div><br></div><div><span style="font-family:'Courier New,courier'">Traceback (most recent call last):<br>  File "E:/lavori/Progetti_PIE/Convenzione_SISMICA/NomeComune_RP_v2.1.3_alpha1\indaginipun.py", line 42, in <br>    LedQtop.textChanged.connect(lambda: validaQuota(LedQtop))<br>NameError: free variable 'LedQtop' referenced before assignment in enclosing scope</span><br></div><div><span style="font-family:'Courier New,courier'"><br></span></div><div><div class="gmail_extra">to avoid this error I have to declare some variable in my parent form but then I have a minidump error when insert new records.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'm in a "cul de sac". To hard for my weak python knowledge</div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks for all<br></div><div class="gmail_extra">Luca</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-02 10:57 GMT+02:00 Luca Lanteri <span dir="ltr"><<a href="mailto:lklanteri@gmail.com" target="_blank">lklanteri@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Great Matthias,<div><br></div><div>I remove all global variables and now it work fine !</div><div><br></div><div>It remain just one problem, I add some code [0] connected with a button to insert a filename in a field.</div><div><div>If use the button from single form all works fine but when I use it in from the parent-child form the code start  lot of times (it seems one time for every record in the table).</div><div><br></div><div><br></div></div></div></blockquote></div></div></div></div>