Skip to content

yjg30737/pyqt-transparent-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Example

Code Sample

from PyQt5.QtWidgets import QApplication


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    window = TransparentWindow()
    window.show()
    app.exec_()

Result

Transparent window except for border (white).

image

Resize frame (blue)

image

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.