跳转到主要内容

矩形屏幕区域几何形状

项目描述

python-xrectsel

矩形屏幕区域几何形状

Python Versions Build Status PyPI version License: GPLV3 Code style: black

该项目基于xrectsel。它是Python的变种,具有一些增强功能。

安装

pip install python-xrectsel

用法

 xrectsel --help
Usage: xrectsel [OPTIONS]

Options:
  -f, --format TEXT               Format output string with fallowing options:

                                  %x - start x-coordinate

                                  %y - start y-coordinate

                                  %X - start

                                  %Y - end

                                  %w - width

                                  %h - height

                                  Note: default output is in "%wx%h+%x+%y"
                                  format.

  -ci, --cursor-icon [crosshair|cross|pencil|dotbox]
                                  Select cursor icon
  -cf, --cursor-foreground <INTEGER INTEGER INTEGER>...
                                  Select cursor foreground color
  -cb, --cursor-background <INTEGER INTEGER INTEGER>...
                                  Select cursor background color
  -h, --help                      Show this message and exit.
  • 我们只需使用xrectsel命令即可收集所选区域几何形状。默认格式为%wx%h+%x+%y
$ xrectsel
$ # select rectangle on sreen
901x634+44+7 #(x-coordinate, y-coordinate, width, height)
  • 我们可以格式化输出几何字符串
$ xrectsel -f "--x=%x --y=%y --width=%w --height=%h"
--x=264 --y=387 --width=1204 --height=519

项目详情


下载文件

下载适用于您平台文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

python-xrectsel-1.5.tar.gz (7.7 kB 查看哈希值)

上传时间:

构建分发

python_xrectsel-1.5-py3-none-any.whl (5.4 kB 查看哈希值)

上传于 Python 3

支持者