Problem: Unable to call squish functions in Python modules. Imported squish & added squish. in front of its function but doesn't seem to work.
test.py
import gAPI
screenshot(obj, filename)
gAPI.py
import squish
def screenshot(obj, file):
widget = squish.waitForObject(obj)
img = squish.grabWidget(widget)
img.squish.save(file,"PNG")
return img
When this is ran in Python modules it returns the error "QPixmap" Squish object has no attribute "squish". Wonder if anyone knows how to resolve this.