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
- pyqt-custom-titlebar-window - Parent widget
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
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
- Download URL: pyqt_transparent_centralwidget_window-0.0.13.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eba5c9f7c1f300cfc7e2204c7f6af8ed55ea4cfd73e5219b675ef0f774e0cd8 |
|
MD5 | 9c7cb2751a331a5422d0eaa4963775a1 |
|
BLAKE2b-256 | 47d25e1c2da668c089cc4c82e91c14ea9c909b369f61cf33698c60b13704be7f |
File details
Details for the file pyqt_transparent_centralwidget_window-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: pyqt_transparent_centralwidget_window-0.0.13-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e8d3c9330afa5ca10abe7e0d06c78c574f9b08dd8ecae262f1e2de3fdfccec4 |
|
MD5 | a679b9c942a68ad243553292b5e66be3 |
|
BLAKE2b-256 | aff5273c75c593afebc8fd2e05c898b63c342fd8621918be9d65d161d01c7e52 |