Skip to content

yjg30737/pyqt-shadow-frame-window-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-shadow-frame-window-example

PyQt shadow(+rounded) frame window example.

You can move and resize this.

Show the slight shadow around the window's border.

== 2022-07-27 ==

From v0.0.2, window's edges are rounded.

Should've changed the name as pyqt-shadow-rounded-frame-window or something but i'm kinda lazy so whatever.

== 2022-08-06 ==

From v0.0.3, window can be resized and moved by inheriting FramelessWindow in pyqt-frameless-window.

== 2022-09-04 ==

From v0.0.31(don't care about the version policy, just want to slow down), window's shadow and border disappear when window is full screen or maximized. They will reappear when window is back to normal.

Requirements

  • PyQt5 >= 5.15

Setup

python -m pip install git+https://github.com/yjg30737/pyqt-shadow-frame-window-example.git --upgrade

Included Package

Example

Code Sample

from PyQt5.QtWidgets import QApplication
from pyqt_shadow_frame_window_example import MainWindow, ShadowFrame

if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    widget = MainWindow()
    window = ShadowFrame(widget)
    window.show()
    app.exec()

Result

image

Inspired by Windows 11 GUI.