&gt;&gt;  In your example, rope should first infer the object main_widget holds<br>
&gt;&gt;  and then its helpMenu attribute and finally its insertItem.  When rope<br>&gt;&gt;  cannot find the location of insertItem, it has failed to follow this<br>
&gt;&gt;  chain (maybe some dynamic or uncommon case). <br><br>I&#39;ve found out that for the line:<br><div><br><div style="margin-left: 40px;">main_widget.helpMenu.insertItem(&quot;Hello world&quot;,self.hi,0,666)<br></div>
<br></div>the helpMenu attribute is defined in main_form.ui<br>

<br>Should I convert this to a .py file using pyuic4 and then import it to my project?