pyqt-vbounding-box
PyQt QGraphicsView with bounding box. User can move horizontal border of the box vertically.
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-vbounding-box
Feature
-
Being able to drag and drop horizontal border vertically
-
Pressing mouse cursor to place more adjacent border on the spot.
-
Right click to release the focus of the box
Example
Code Sample
from PyQt5.QtWidgets import QWidget, QGridLayout, QApplication, QPushButton, QFileDialog
from pyqt_vbounding_box.vBoundingBox import VBoundingBox
class VBoundingBoxExample(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
addImageBtn = QPushButton('Add image')
addImageBtn.clicked.connect(self.__addImage)
self.__view = VBoundingBox()
lay = QGridLayout()
lay.addWidget(addImageBtn)
lay.addWidget(self.__view)
self.setLayout(lay)
def __addImage(self):
filename = QFileDialog.getOpenFileName(self, 'Open', '', 'Image Files (*.png *.jpg *.bmp)')
if filename[0]:
filename = filename[0]
self.__view.setFile(filename)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
ex = VBoundingBoxExample()
ex.show()
sys.exit(app.exec_())
Result
See Also
-
pyqt-hbounding-box - horizontal way
-
pyqt-bounding-box - horizontal/vertical ways
Metadata
Release files for pyqt-vbounding-box 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyqt-vbounding-box-0.0.11.tar.gz | 3.7 kB | Without provenance | Details for pyqt-vbounding-box-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_vbounding_box-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for pyqt_vbounding_box-0.0.11-py3-none-any.whl |
Total release size: 8.4 kB
Release files / pyqt-vbounding-box-0.0.11.tar.gz
| Download URL | pyqt-vbounding-box-0.0.11.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef3059d53f88fe620643003b6b65ec069448d249b08bea9b3f40133644723222
|
|
BLAKE2b-256 checksum How to use checksums |
e73d5430e49ed71351faf4ab298366b30438ee0bd19ba8c68e9b39ae7e0d797b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_vbounding_box-0.0.11-py3-none-any.whl
| Download URL | pyqt_vbounding_box-0.0.11-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
289468648b6da50dda26483ddc633d77ceaf1c57170c9f28d8ac3c8f45d296bf
|
|
BLAKE2b-256 checksum How to use checksums |
f054b5cc3863af1a83485797dab5ec7c53a5d2a26184dfe15146560a15a7ab0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Security for pyqt-vbounding-box 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.