我正试图将一个班级的假 function功能进入另一个文字。 这使我有以下错误:
AttributeError: module object has no attribute functionName
The function is present in a class and is accessed via classname.functionName() call. Is there anything that I am missing ?
- 更新
我的法典是:
(program.py)
import ImageUtils
import ...
class MyFrame(wx.Frame):
...
ImageUtils.ProcessInformation(event)
(ImageUtils.py)
import statements...
class ImageUtils(threading.Thread):
def ProcessInformation(self, event):
self.queue.put(event)
Thus, the error is : AttributeError: module object has no attribute ProcessInformation So, do I have to make this second script a module only ?