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.
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
Close
Hashes for pyqt-transparent-centralwidget-window-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309f921132a9c8f42acaf7b972a03c7db3d0c108f70a6375664ba11e7fa38745 |
|
MD5 | 190970a1f3e58014684e698aee64b517 |
|
BLAKE2b-256 | 605e2c8b311521b7101d7273eba5bf04a2d49707c9979945be42a42ac4ec5ee0 |
Close
Hashes for pyqt_transparent_centralwidget_window-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8b9ce6df01cd3d6279da823e2fb13054defa02873e989c9f149a469f2981af |
|
MD5 | ee21e566b4f60aa2e195259ce80a5e2f |
|
BLAKE2b-256 | abfd0650e036c8dfe7e1e9256b69725901a1ba1ea23c656b28b7e561fc7303bc |