def onDeviceChange(self, cur_device=None): ScrollView.onDeviceChange(self, cur_device) self.dev = copier.PMLCopyDevice(device_uri=self.cur_device.device_uri, printer_name=self.cur_printer) self.scan_style = self.dev.mq.get('scan-style', SCAN_STYLE_FLATBED) self.copy_type = self.dev.mq.get('copy-type', COPY_TYPE_DEVICE) if self.scan_style == SCAN_STYLE_SCROLLFED: self.fitToPageCheckBox.setEnabled(False) self.fit_to_page = pml.COPIER_FIT_TO_PAGE_DISABLED self.getDeviceSettings()
def onDeviceChange(self, cur_device=None): self.file_list = [] ScrollView.onDeviceChange(self, cur_device)