Skip to main content

Helper functions for PySide2 UI Widgets

Project description

PyPI Supported Python Versions PyPI version Message

ps-ui-backpack

PySide UI Utilities

Some shared PySide2 UI utilities for Maya/Houdini/Nuke Qt Tools

Installation

pip install pyside-ui-backpack

Usage

Widgets

from ps_ui import widgets, Colors

widgets.PushButton(parent, 'qt_name', 'Click Me' , (120, 21) , Colors.BLUE)

Dialogs

from ps_ui import dialogs

dialogs.inform_dialog(parent, 'message', 'title')
dialog.inform_dialog_small(parent, 'message', 'title')
dialogs.warning_dialog(parent, 'error_message', 'title')
dialogs.warning_dialog(parent, 'error_message', 'title')

CSS

from ps_ui import style_push_button, Colors

# style a button widget
button = QPushButton(main_window)
style_push_button(main_window, button, Colors.BLUE)

Colors

Colors.py contains a list of colors

from ps_ui import Colors

Colors.DISABLED Colors.BLUE, Colors.RED, Colors.GREEN, Colors.YELLOW, ...
Colors.DARK_BLUE, Colors.DARK_RED, Colors.DARK_GREEN, Colors.DARK_YELLOW, ...
Colors.BG_BLUE, Colors.BG_RED, Colors.BG_GREEN, Colors.BG_YELLOW, ...

Push Button

Utils

Wait Cursor decorator

from ps_ui import wait_cursor

@wait_cursor
def long_running_function():
    pass

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

pyside_ui_backpack-1.0.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

pyside_ui_backpack-1.0.6-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file pyside_ui_backpack-1.0.6.tar.gz.

File metadata

  • Download URL: pyside_ui_backpack-1.0.6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.6 Windows/10

File hashes

Hashes for pyside_ui_backpack-1.0.6.tar.gz
Algorithm Hash digest
SHA256 355c1e2ff51e866a7e5f8f816fccced46b0066499863f06b87b6600e6d0726f7
MD5 5b4da547be14b37beee73c2c5ccfb3fe
BLAKE2b-256 45cbc71c35ad9abc2ba84e6dfdbc34d87ef1a95516987898d81a627d454be88e

See more details on using hashes here.

File details

Details for the file pyside_ui_backpack-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pyside_ui_backpack-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 074fb4015af0af6f76833ebf0dd42a84e9b44d2fc32c8a253415029f0d7ef12d
MD5 e0eea9b81ef44cb0dc9ee73987940ee3
BLAKE2b-256 de25c69ce7fccc2bac628dedd5c03ae80fa2586369b59bddf451c0a705b3e6cb

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