资源简介
惠普打印机linux打印驱动,便于用户在使用linux打印机时找不到对应的驱动信息,使用文件中的PPD文件即可使用
代码片段和文件信息
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2003-2015 HP Development Company L.P.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not write to the Free Software
# Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
#
# Author: Don Welch Naga Samrat Chowdary Narla
#
__version__ = ‘5.0‘
__title__ = ‘Printer Cartridge Alignment Utility‘
__mod__ = ‘hp-align‘
__doc__ = “Cartridge alignment utility for HPLIP supported inkjet printers. (Note: Not all printers require the use of this utility).“
# Std Lib
import sys
import re
import getopt
import operator
import os
# Local
from base.g import *
from base import device status utils maint tui module
from prnt import cups
try:
from importlib import import_module
except ImportError as e:
log.debug(e)
from base.utils import dyn_import_mod as import_module
def enterAlignmentNumber(letter hortvert colors line_count maximum):
ok value = tui.enter_range(“From the printed Alignment page Enter the best aligned value for line %s (1-%d): “ %
(letter maximum)
1
maximum)
if not ok:
sys.exit(0)
return ok value
def enterPaperEdge(maximum):
ok value = tui.enter_range(“Enter numbered arrow that is best aligned with the paper edge (1-%d): “
% maximum
1
maximum)
if not ok:
sys.exit(0)
return ok value
def colorAdj(line maximum):
ok value = tui.enter_range(“Enter the numbered box on line %s that is best color matched to the background color (1-%d): “ %
(line maximum)
1
maximum)
if not ok:
sys.exit(0)
return ok value
def bothPensRequired():
log.error(“Cannot perform alignment with 0 or 1 cartridges installed.\nPlease install both cartridges and try again.“)
def invalidPen():
log.error(“Invalid cartridge(s) installed.\nPlease install valid cartridges and try again.“)
def invalidPen2():
log.error(“Invalid cartridge(s) installed. Cannot align with only the photo cartridge installed.\nPlease install other cartridges and try again.“)
def aioUI1():
log.info(“To perform alignment you will need the alignment page that is automatically\nprinted after you install a print cartridge.“)
log.info(“\np\t\tPrint the a
相关资源
- redis-desktop-manager_0.9.3.20_amd64.deb for L
- Programming with POSIX Threads 英文PDF版
- 交叉编译QT5.6
- Linux命令行与shell脚本编程大全.第3版
- 嵌入式Linux系统设计及应用-基于国产
- 完美应用SUSE Linux
- prometheus-2.0.0.linux-amd64.tar.gz
- Centos6.5一键安装ffmpeg(含依赖包)
- 20307218鸟哥的Linux私房菜第四版高清完
- Linux命令行与shell脚本编程大全.第3版
- 深入Linux内核架构中文版.pdf 超清中文
- Splunk-7.2.3-Linux-x86_64_crack.zip
- 鸟哥的Linux私房菜(第四版同步鸟哥网
- MT7628MTK官方linuxSDK开发资料和数据手册
- 鸟哥的Linux私房菜第四版(基于CentO
- node-v6.9.4-linux-x64.tar.gz
- Linux入门_超详细版.pdf
- qt-eclipse-integration-linux.x86-1.4.0.tar.gz
- ies4linux 的本地安装 Downloads 资源包
- 鸟哥的Linux私房菜服务器架设篇第三版
- UnixBench 5.1.3
- 友善之臂MiniTools-linux-usb烧写工具
- linux系统下gcc软件包
- 《鸟哥的Linux私房菜-基础篇》第四版
- rtlinux安装包
- chromedriver_72.0.3626.7集合win32linux64mac6
- geckodriver v0.24.0,包含mac、linux、win3
- 鸟哥的Linux私房菜第四版高清版PDF
- linux环境下grads安装步骤
- linux下qt打包工具linuxdeployqt
评论
共有 条评论