| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 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&