def get_img_width(self): if self.dev: return pyf.fp_dev_get_img_width(self.dev) raise "Device not open"
def img_width(self): """Return the width of the images scanned by the device, in pixels.""" if self.dev: return pyf.fp_dev_get_img_width(self.dev) raise "Device not open"