Skip to main content

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

Project description

PyQtThemeSettings

License Version

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

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 of 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.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

PyQtThemeSettings-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file PyQtThemeSettings-1.0.0.tar.gz.

File metadata

  • Download URL: PyQtThemeSettings-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for PyQtThemeSettings-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a9cf045916e53949645c28043b73e8eb7998b469cb6699cf4f6d338409f04a2d
MD5 04dcbec3e2f60bacf16d525b5ee68f90
BLAKE2b-256 545871e19c57ace23ad055c0b61c1a1f07dee3cc92b6e758e030183e7ad6edb5

See more details on using hashes here.

File details

Details for the file PyQtThemeSettings-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for PyQtThemeSettings-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11c2a82655a53cbbe6a78125793682e3fe3c9a13b18e5f3bf5492181451b70a6
MD5 931583a92281bbba090d07dd29927c5b
BLAKE2b-256 d9a448c91f762b389cf4124f6c7e4428936cc3a9c7f72194083274b2325c0fb0

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