[Eric] Can't find definition using Rope
Detlev Offenbach
detlev at die-offenbachs.de
Sat Apr 25 11:04:26 BST 2009
On Samstag, 25. April 2009, OldGrantonian wrote:
> >> In your example, rope should first infer the object main_widget holds
> >> and then its helpMenu attribute and finally its insertItem. When rope
> >> cannot find the location of insertItem, it has failed to follow this
> >> chain (maybe some dynamic or uncommon case).
>
> I've found out that for the line:
>
> main_widget.helpMenu.insertItem("Hello world",self.hi,0,666)
>
> the helpMenu attribute is defined in main_form.ui
>
> Should I convert this to a .py file using pyuic4 and then import it to my
> project?
That is the approach used developing eric4 and it can be done from within
eric4 (Project Viewer -> Forms tab, context menu Compile Form). Once compiled
the Generate Dialog Code of the same context menu may be used to generate
some template code for the dialog class.
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list