| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/hplip/scan/__pycache__/ |
Upload File : |
o
�K0jR � @ s d dl Z d dlZd dlZd dlT d dlmZ d dlmZ d dlm Z e�
d�ZdZej
dejd ejd
ejdejdejd
iZejdejdejdejdejdejdejdiZdZG dd� d�ZG dd� d�ZG dd� de j�Z dd� Z!dd� Z"d d!� Z#d&d"d#�Z$d$d%� Z%dS )'� N)�*)�utils��
to_bytes_utf8)�queue�scanext� � TYPE_BOOL�TYPE_INT�
TYPE_FIXED�TYPE_STRING�TYPE_BUTTON�
TYPE_GROUP� UNIT_NONE�
UNIT_PIXEL�UNIT_BIT�UNIT_MM�UNIT_DPI�UNIT_PERCENT�UNIT_MICROSECONDi c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� ZdS )
�OptionaN Class representing a SANE option.
Attributes:
index -- number from 0 to n, giving the option number
name -- a string uniquely identifying the option
title -- single-line string containing a title for the option
desc -- a long string describing the option; useful as a help message
type -- type of this option. Possible values: TYPE_BOOL,
TYPE_INT, TYPE_STRING, and so forth.
unit -- units of this option. Possible values: UNIT_NONE,
UNIT_PIXEL, etc.
size -- size of the value in bytes
cap -- capabilities available; CAP_EMULATED, CAP_SOFT_SELECT, etc.
constraint -- constraint on values. Possible values:
None : No constraint
(min,max,step) Integer values, from min to max, stepping by
list of integers or strings: only the listed values are allowed
c
C s\ dd l }|| _|\ | _| _| _| _| _| _| _| _ | _
t| j�td�kr,t| j�| _d S d S )Nr � )�string�
cur_device�index�name�title�desc�type�unit�size�cap�
constraint�str)�self�argsr r � r&