Coder Social home page Coder Social logo

yjg30737 / pyqt-shadow-frame-window-example Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 27 KB

PyQt shadow(+rounded) frame window example

License: MIT License

Python 100.00%
frameless pyqt pyqt-examples pyqt5 pyqt5-examples qt qt-examples qt5 shadow-window frameless-window

pyqt-shadow-frame-window-example's Introduction

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.

pyqt-shadow-frame-window-example's People

Contributors

yjg30737 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.