Skip to main content

PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image

Project description

pyqt-transparent-centralwidget-window

PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.

Frame will be removed when full screen is being activated.

This module directly inherits the pyqt-custom-titlebar-window.

Requirements

PyQt5 >= 5.15

Setup

python -m pip install pyqt-transparent-centralwidget-window

Included Package

Example

Code Sample

from PyQt5.QtWidgets import QMainWindow, QMenuBar, QMenu, QApplication

from pyqt_transparent_centralwidget_window import TransparentCentralWidgetWindow





class MainWindow(QMainWindow):

    def __init__(self):

        super().__init__()

        self.__initUi()



    def __initUi(self):

        menuBar = QMenuBar()

        filemenu = QMenu('File', self)

        menuBar.addMenu(filemenu)

        self.setMenuBar(menuBar)





if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    example = TransparentCentralWidgetWindow(MainWindow())

    example.setButtons()

    example.show()

    app.exec_()

Result

image

Example by App

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file pyqt_transparent_centralwidget_window-0.0.13.tar.gz.

File metadata

File hashes

Hashes for pyqt_transparent_centralwidget_window-0.0.13.tar.gz
Algorithm Hash digest
SHA256 4eba5c9f7c1f300cfc7e2204c7f6af8ed55ea4cfd73e5219b675ef0f774e0cd8
MD5 9c7cb2751a331a5422d0eaa4963775a1
BLAKE2b-256 47d25e1c2da668c089cc4c82e91c14ea9c909b369f61cf33698c60b13704be7f

See more details on using hashes here.

File details

Details for the file pyqt_transparent_centralwidget_window-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_transparent_centralwidget_window-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2e8d3c9330afa5ca10abe7e0d06c78c574f9b08dd8ecae262f1e2de3fdfccec4
MD5 a679b9c942a68ad243553292b5e66be3
BLAKE2b-256 aff5273c75c593afebc8fd2e05c898b63c342fd8621918be9d65d161d01c7e52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page