Skip to main content

QT UI Extension

Project description

quite: QT UI Extension for Python3

Build Status


  1. powerful signal-slot
  2. user friendly widget classes

User Friendly Widget Classes

Uniform wrapper on frequently-used widget, including:

container widget:

  1. Widget
  2. Dialog
  3. MainWindow
  4. GroupBox
  5. DockWidget

value widget:

  1. Label
  2. LineEdit
  3. ComboBox
  4. ListWidget
  5. SpinBox
  6. DoubleSpinBox

behavior widget:

  1. InputDialog
  2. Action
  3. Shortcut
  4. PushButton

Container Widget

Example 1: create widget

import quite

w = quite.Widget()

Simple Widget

Example 2: nested widget

import quite

class CustomWidget(quite.Widget):
    def paint(self, painter: quite.Painter):
        painter.setFont(quite.QFont("Courier New", 14.0))
        painter.draw_text_bottom_right(quite.PointF(0, 0), "Custom Widget")

main_window = quite.MainWindow()
custom_widget = CustomWidget(parent=main_window)

Nested Widget

Example 3: widget from ui file

import os
from quite import *

class CustomWidget(Widget):
    def paint(self, painter: Painter):
        w, _ = self.size
        painter.setFont(QFont("Courier New", 14.0))
        painter.draw_text_bottom_right(PointF(0, 0), "So Cool!")
        painter.draw_text_bottom_left(PointF(w, 0), "From Custom Widget")

main_window = load_ui(filename=os.path.join(os.path.dirname(__file__), 'main_window.ui'))

Use QtDesigner to create a ui file:

UI Design

Project details

Download files

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

Files for quite, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size quite-0.3.2.tar.gz (19.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page