Skip to content

Commit 22f801e

Browse files
committed
fix for alpha-2 release
Signed-off-by: Nikhil Dhandre <nik.digitronik@live.com>
1 parent aa8ad28 commit 22f801e

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
<h3 align="center">Geometry of a rectangular screen region</h3>
44
<p align="center">
5+
<a href="https://pypi.org/project/python-xrectsel"><img alt="Python Versions"
6+
src="https://img.shields.io/pypi/pyversions/python-xrectsel.svg?style=flat"></a>
7+
<a href="https://pypi.org/project/python-xrectsel/#history"><img alt="PyPI version"
8+
src="https://badge.fury.io/py/python-xrectsel.svg"></a>
59
<a href="https://github.com/digitronik/python-xrectsel/blob/master/LICENSE"><img alt="License: GPLV3"
610
src="https://img.shields.io/pypi/l/miqsel.svg?version=latest"></a>
711
<a href="https://pypi.org/project/black"><img alt="Code style: black"
@@ -11,7 +15,22 @@ src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
1115

1216
## Installation:
1317
```bash
14-
pip install python-xrectsel --user
18+
pip3 install python-xrectsel --user
1519
```
1620

1721
## Usage:
22+
- Shell
23+
```bash
24+
$ xrectsel
25+
$ # select rectangle on sreen
26+
127 172 862 465 #(x-coordinate, y-coordinate, width, height)
27+
```
28+
- Python
29+
```python
30+
❯❯❯ cat test.py
31+
from xrectsel import XRectSel
32+
print(XRectSel().select())
33+
34+
❯❯❯ python3 test.py
35+
{'start': {'x': 102, 'y': 218}, 'end': {'x': 1170, 'y': 476}, 'width': 1068, 'height': 258}
36+
```

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
name="python-xrectsel",
3232
packages=find_packages(include=["xrectsel"]),
3333
url="https://github.com/digitronik/python-xrectsel",
34-
version="1.0",
34+
version="1.1",
3535
license="GPLv3",
3636
zip_safe=False,
3737
)

0 commit comments

Comments
 (0)