Skip to main content

A package for adding a theme management window to any PySide6 applications using PyQtDarkTheme

Project description

PyQtThemeSettings

License Version Downloads

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

from PyQtThemeSettings import AppSettings

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.

To reset to default settings, connect whatever signal you wish to the AppSettings.resetToDefaults 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


Download files

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

Source Distribution

PyQtThemeSettings-1.0.2.post1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

PyQtThemeSettings-1.0.2.post1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file PyQtThemeSettings-1.0.2.post1.tar.gz.

File metadata

File hashes

Hashes for PyQtThemeSettings-1.0.2.post1.tar.gz
Algorithm Hash digest
SHA256 5b54a9f5ff8f9938e3315ef30b5d7ab359034c38ac8bcb79dd32a54b04fcc9a0
MD5 85a30a97309c6516e99deb76e5c91ee5
BLAKE2b-256 14fdef0e5d7f016162ea22f11f8603109b202204fc0801ca7b9a4209eb0330ed

See more details on using hashes here.

File details

Details for the file PyQtThemeSettings-1.0.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for PyQtThemeSettings-1.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd1694bf4c515c3fecc2b04f1ce9d9354a350d61b32a4db7b5ec5ac21379a12
MD5 10f9faeeb82e1710cee820afa3b0b1c0
BLAKE2b-256 37308d28e60ae327b4fc13b3b8e09de0c0570e13a8d3d0cac1dc439937d9b8da

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