示例#1
0
 def __init__(self, devname):
     d = self.__dict__
     d['sane_signature'] = self._getSaneSignature(devname)
     d['scanner_model'] = d['sane_signature'][1:3]
     d['dev'] = _sane._open(devname)
     self.__load_option_dict()
示例#2
0
 def __init__(self, devname):
     d = self.__dict__
     d['devname'] = devname
     d['dev'] = _sane._open(devname)
     self.__load_option_dict()
示例#3
0
 def __init__(self, devname):
     d = self.__dict__
     d["sane_signature"] = self._getSaneSignature(devname)
     d["scanner_model"] = d["sane_signature"][1:3]
     d["dev"] = _sane._open(devname)
     self.__load_option_dict()
示例#4
0
文件: sane.py 项目: 1060460048/Pillow
 def __init__(self, devname):
     d=self.__dict__
     d['sane_signature'] = self._getSaneSignature(devname)
     d['scanner_model']  = d['sane_signature'][1:3]
     d['dev'] = _sane._open(devname)
     self.__load_option_dict()
示例#5
0
 def open(self):
     if self._device is not None:
         return
     self._device = sane._open(self.name)  # pylint: disable=protected-access
示例#6
0
 def __init__(self, devname):
     d = self.__dict__
     d['devname'] = devname
     d['dev'] = _sane._open(devname)
     self.__load_option_dict()