Helper functions for PySide2 UI Widgets
Project description
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.ORANGE, Colors.GREY, Colors.WHITE
Colors.DARK_BLUE, Colors.DARK_RED, Colors.DARK_GREEN, Colors.DARK_YELLOW, Colors.DARK_ORANGE, Colors.DARK_GREY, Colors.DARK_WHITE
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-0.1.4.tar.gz
(20.1 kB
view hashes)
Built Distribution
Close
Hashes for pyside_ui_backpack-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bae066f7b79aba6a85dca00c4695f521e1002d69efb9bf991e3d96fd6425231 |
|
MD5 | 347bcaeeae131bc2fba83a21fc6285fd |
|
BLAKE2b-256 | 284f7ce5c2072051dadae910dc96a3868cfc28782f1a2cc879bfe3984129a581 |