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.5.tar.gz
(43.1 kB
view hashes)
Built Distribution
Close
Hashes for pyside_ui_backpack-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a015238dcbaa4f4ab71f01eef6fd6e92c6817b4583db9f4c1c4a2a29d1731b26 |
|
MD5 | 9ed80b04e0d93f174fd1b286f0990fac |
|
BLAKE2b-256 | aa3803f3df8ed847c7d22ad216d33d71fe3e38a7e9dff60bc4c406e99241a821 |