Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-transparent-window
PyQt transparent window
https://github.com/yjg30737/pyqt-transparent-window
pyqt pyqt-examples pyqt-frameless-window pyqt-gui pyqt-transparent-window pyqt-tutorial pyqt5 pyqt5-examples pyqt5-frameless-window pyqt5-gui pyqt5-transparent-window pyqt5-tutorial python python3 python37 qt
Last synced: 13 days ago
JSON representation
PyQt transparent window
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-transparent-window
- Owner: yjg30737
- License: mit
- Created: 2021-12-29T04:52:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-30T09:57:48.000Z (almost 3 years ago)
- Last Synced: 2023-03-04T22:18:01.102Z (over 1 year ago)
- Topics: pyqt, pyqt-examples, pyqt-frameless-window, pyqt-gui, pyqt-transparent-window, pyqt-tutorial, pyqt5, pyqt5-examples, pyqt5-frameless-window, pyqt5-gui, pyqt5-transparent-window, pyqt5-tutorial, python, python3, python37, qt
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-transparent-window
PyQt transparent window## Requirements
PyQt5>=5.8## Setup
```pip3 install git+https://github.com/yjg30737/pyqt-transparent-window.git --upgrade```## Included Package
* pyqt-resize-frame## Example
Code Sample
```python
from PyQt5.QtWidgets import QApplicationif __name__ == "__main__":
import sysapp = QApplication(sys.argv)
window = TransparentWindow()
window.show()
app.exec_()
```Result
Transparent window except for border (white).
![image](https://user-images.githubusercontent.com/55078043/147629109-5025fd5c-ec38-46e2-895d-a0d55bb8c10f.png)
Resize frame (blue)
![image](https://user-images.githubusercontent.com/55078043/147629222-4fbc7e4b-1d68-46d8-8b02-4f06945ddb1d.png)
This is Windows screenshot feature so mouse cursor cannot be seen. At least cursor reshaping works like a charm so far.
## Note
It can be expanded or shrinked only right or bottom direction.Technically I can make that happen top or left direction as well but it makes window jitter.
I will figure it out how to solve that.