https://github.com/archiebhl/pyoverlaykit
Always-on-top overlays for PyQt and PySide.
https://github.com/archiebhl/pyoverlaykit
always-on-top desktop-app gui overlay package pyqt pyside qt
Last synced: 8 months ago
JSON representation
Always-on-top overlays for PyQt and PySide.
- Host: GitHub
- URL: https://github.com/archiebhl/pyoverlaykit
- Owner: archiebhl
- License: mit
- Created: 2024-08-13T11:27:22.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-16T06:19:46.000Z (about 1 year ago)
- Last Synced: 2025-10-13T18:26:10.825Z (8 months ago)
- Topics: always-on-top, desktop-app, gui, overlay, package, pyqt, pyside, qt
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PyOverlayKit
This package provides a customizable overlay for PySide6/PyQt6 applications, allowing you to create always-on-top windows with adjustable background colors, transparency, and layouts. Specifically, this package allows these overlays to stay on top of full-screened applications.
Find PyOverlayKit on PyPi [here](https://pypi.org/project/PyOverlayKit/).
## Installation
You can install the package using pip:
`pip install PyOverlayKit`
## Example Usage
```
from PySide6.QtWidgets import QApplication, QLabel, QPushButton, QGridLayout
from PySide6.QtGui import QColor
from PyOverlayKit.overlay import Overlay
app = QApplication([])
overlay = Overlay()
overlay.set_background_color(QColor(0, 255, 0, 150)) # Green with 150 transparency
overlay.set_geometry(100, 100, 400, 200)
grid_layout = QGridLayout()
overlay.setLayout(grid_layout)
label1 = QLabel("Label 1")
button1 = QPushButton("Button 1")
grid_layout.addWidget(label1, 0, 0)
grid_layout.addWidget(button1, 0, 1)
overlay.show()
app.exec()
```
## Contributing
Contributions are welcome. Please fork the repository and submit a pull request.