A package for adding a theme management window to any PySide6 applications using PyQtDarkTheme
Project description
PyQtThemeSettings
A package for adding a theme management window to any PySide6 applications using PyQtDarkTheme (Support for PyQt may come at some point, but PySide6 is the official recommendation of Qt for Python, so it's not a priority for me.)
Installation
PyQtThemeSettings can be installed using pip
pip install pyqtthemesettings
Usage
Without PyQtThemeSettings
if __name__ == "__main__":
app = QApplication([]) # Initialise the App
window = MainWindow() # Initialise Window
window.show()
exit(app.exec())
With PyQtThemeSettings
if __name__ == "__main__":
app = QApplication([])
app.setOrganizationName("MrSuspicious")
app.setApplicationName("TestApp")
settings = QSettings()
appSettings = AppSettings(settings, app) # Pass in QSettings and QApplication
window = MainWindow()
window.show()
exit(app.exec())
PyQtThemeSettings takes in a QSettings object, which controls where the persistent settings are stored, and a QApplication.
In order to access the settings window, connect whatever signal you wish to the AppSettings.openSettings
slot.
Contribution to the Project
If you have any feature suggestions please feel free to make a pull request!
Also if you happen to test this with a version other than python 3.11 and notice no issues, please let me know so i can change the entry on PyPi
Project details
Release history Release notifications | RSS feed
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
Hashes for PyQtThemeSettings-1.0.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ae5506ca77606d2c01c6f3a919809e831319be9da17b5f499f1cd668d877ce |
|
MD5 | aaf55c162533697f01e896e920bf6bcc |
|
BLAKE2b-256 | 3dca3c24dd5a1f475615c099d10d9fa1427095a3c8ce7ce4010c77c2044a76e5 |
Hashes for PyQtThemeSettings-1.0.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32bbeea03cfe3a580f0958658934d74d708df7293ed0dd40dc3b534eb707fd41 |
|
MD5 | fb0e25b4b43f54bdb124c29d3a81673b |
|
BLAKE2b-256 | 16f5b23e07b7987b564f490d34a25de2907c153bd682d54109a120e0d208116d |