The Rope plugin finds the vast majority of definitions. Sometimes a definition is not found, and I'm trying to understand why. Please remember that I'm not a Python expert. <br><br>Here are some lines from a file:<br>
<br>. . . from mnemosyne.pyqt_ui.plugin import * <br>. . . main_widget = get_main_widget() <br>...<br>. . . main_widget.helpMenu.insertItem("Hello there", hi)<br><br><br>Highlight "get_main_widget"<br>
Select Refactoring > Query > Find Definition<br><br>Rope finds the definition for "get_main_widget" in the file, "plugin.py". That's OK.<br><br>Now here is definition that I cannot find, from the same example above:<br>
<br>Highlight "helpMenu"<br>Select Refactoring > Query > Find Definition<br><br>Message: "No matching definition found."<br><br>However, in the file, "main_frm.py", there is the following definition:<br>
<br>class MainFrm(QMainWindow):<br> def __init__(self,parent = None,name = None,fl = 0):<br> QMainWindow.__init__(self,parent,name,fl)<br> self.statusBar()<br>...<br>...<br> self.helpMenu = QPopupMenu(self) <br>
...<br>...<br><br>The file "main_frm.py" is in the same directory as the file "plugin.py"<br><br>Why does Rope find definitions in "plugin.py", but not in "main_frm.py"?<br>