Skip to main content

A modern and customizable python GUI interface library built from the PySide6 library

Project description

CustomPyQt

CustomPyQt is a python GUI interface library built from the PySide6 library, providing a modern and consistant interface with styled widgets and dark and light themes; all widget's colors can be styled in ("light", "dark") format. CustomPyQt can also be used or integrated with PySide and PyQt versions as long as PySide6 is installed.

Requirements

  • Python 3.9, 3.10, 3.11, 3.12, or 3.13
  • Pyside6 (you can install with the command pip install PySide6)

Installation

pip install PyCt6

If there is any issues you can try python -m pip install PyCt6 and if that still doesn't work you can also try python3.13 -m pip install PyCt6 using whatever python version you have

Documentation

The documentation can be found on this Github Wiki page:

CustomPyQt Documentation and Tutorial

Example Program

Here is a simple example program with only one button to test the CustomPyQt library:

from PyCt6 import CMainWindow, CButton, set_appearance_mode, set_color_theme
from PySide6.QtWidgets import QApplication, QVBoxLayout
from PySide6.QtCore import Qt

set_appearance_mode("system")
set_color_theme("blue")

class MainWindow(CMainWindow):
    def __init__(self):
        super().__init__(width=400, height=250, title="CMainWindow", background_color="rgb(30,30,30)")

        self.main_layout = QVBoxLayout()
        self.main_layout.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.button = CButton(master=self, text="CButton", command=self.command)

        self.main_layout.addWidget(self.button)
        self.setLayout(self.main_layout)

    def command(self):
        print("Button Clicked!")

app = QApplication()
win = MainWindow()
win.show()
app.exec()

which results in this window on Windows 11

You can find more example programs in the examples folder and in the documentation

Contribution

Feel free to donate with PayPal to help support and contribute to this project :) Thanks!

Paypal donation button

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyct6-6.0.1-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file pyct6-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyct6-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pyct6-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68ea656511f1b8db7d41923124880c4b6b324db4bc3a173d39746fc455e0c4b4
MD5 507a71caa7240d6a07fa303ec39aab13
BLAKE2b-256 0823711ce1d28b4964e741f22fae36d7a47f97a0edea65f482f8b620bce6ba16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page