PySide6StyleKit
PySide6 アプリのための軽量で拡張性の高いスタイル済み UI コンポーネントキット。
A lightweight and extensible styled UI component kit for PySide6 applications.
特徴 / Features
- 統一テーマ(ライト/ダーク/背景色)
Unified themes (light, dark, background-aware) - スタイル済みウィジェット(Label / LineEdit / Button / Indus Alternate Button / Indus Lamp / Indus Momentary Button / CheckBox / RadioButton / ComboBox / Slider / ProgressBar / TextEdit / GroupBox など)
Styled widgets such as Label, LineEdit, Button, Indus Alternate Button, Indus Lamp, Indus Momentary Button, CheckBox, RadioButton, ComboBox, Slider, ProgressBar, TextEdit, and GroupBox - GroupBox タイトルの自動中央揃え(フォントサイズ変更に追随)
- 数値バリデーション(int / float / range)
Robust numeric validation (int, float, range) numeric_rangeは Enter またはフォーカスアウト時に範囲検証
numeric_rangeis verified on Enter or focus-out- エラー表示の柔軟な制御(枠線のみ・メッセージ表示)
Flexible error signaling (border-only or message) - 拡張しやすいモジュール構造
Modular and extensible architecture - 実用的なサンプルコード付き
Includes practical example scripts
インストール / Installation
pip install pyside6stylekit
使い方 / Usage
examples/demo.py と examples/demo_indus.py に基本的な使い方があります。
Basic usage is available in examples/demo.py and examples/demo_indus.py.
サポート widget / Supported widgets
StyledLabelStyledLineEditStyledButtonStyledCheckBoxStyledRadioButtonStyledComboBoxStyledSliderStyledProgressBarStyledTextEditStyledGroupBoxIndusAlternateButton,IndusLamp,IndusMomentaryButton
※ さらに Theme 本体で色やサイズ設定を管理し、各 widget のスタイルを統一しています。
利用可能なカラーモード / Available color modes
Theme.light()Theme.dark()Theme(primary=<hex>, mode='light'|'dark', background='<hex>')
サポート色(utils/colors.py) / Supported colors
normalize_color で次のキーワードを16進色に変換します:
- red:
#ff0000 - green:
#00ff00 - blue:
#0000ff - black:
#000000 - white:
#ffffff - gray:
#808080 - orange:
#ffa500 - yellow:
#ffff00 - purple:
#800080 - pink:
#ffc0cb - sky:
#87ceeb
normalize_color は '#rrggbb' 形式や (r,g,b) 形式も受け付けます。
色サンプル / Color samples
from pyside6stylekit.utils.colors import normalize_color, adjust_color
print(normalize_color('sky')) # #87ceeb
print(normalize_color((255,16,128))) # #ff1080
print(adjust_color('#ff1080', 0.8)) # #cc0d66
from pyside6stylekit import Theme, StyledLabel, StyledLineEdit, StyledButton, StyledGroupBox
theme = Theme.light()
label = StyledLabel("Hello")
lineedit = StyledLineEdit("Range (0-120)", theme, mode="numeric_range", min_val=0, max_val=120)
button = StyledButton("Submit")
# GroupBox with adaptive title positioning
groupbox = StyledGroupBox("Settings", theme)
# Validation examples
lineedit.show_error("Value out of range") # tooltip + red border
lineedit.show_error("") # clear error state
プロジェクト構造 / Project Structure
pyside6stylekit/
├─ pyside6stylekit/
│ ├─ utils/
│ │ ├─ __init__.py
│ │ └─ colors.py
│ ├─ widgets/
│ │ ├─ __init__.py
│ │ ├─ button.py
│ │ ├─ checkbox.py
│ │ ├─ combobox.py
│ │ ├─ groupbox.py
│ │ ├─ indus_alternate_button.py
│ │ ├─ indus_lamp.py
│ │ ├─ indus_momentary_button.py
│ │ ├─ label.py
│ │ ├─ lineedit.py
│ │ ├─ progressbar.py
│ │ ├─ radiobutton.py
│ │ ├─ slider.py
│ │ └─ textedit.py
│ ├─ __init__.py
│ ├─ presets.py
│ └─ theme.py
├─ examples/
│ ├─ demo.py
│ └─ demo_indus.py
├─ LICENSE
└─ README.md
ライセンス / License
MIT License © 2026 Mitsunori
作者 / Author
Noritama-Lab
Metadata
Release files for pyside6stylekit 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyside6stylekit-0.2.3.tar.gz | 12.3 kB | Without provenance | Details for pyside6stylekit-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyside6stylekit-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for pyside6stylekit-0.2.3-py3-none-any.whl |
Total release size: 29.4 kB
Release files / pyside6stylekit-0.2.3.tar.gz
| Download URL | pyside6stylekit-0.2.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df5edff4c90b9f8db3b9f218fdc7043b75db4a262f692e66fa59e446663fe628
|
|
BLAKE2b-256 checksum How to use checksums |
999996fc5919aa109271432c2ed9db344cba70e600f16136ccaab83bf31aea57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyside6stylekit-0.2.3-py3-none-any.whl
| Download URL | pyside6stylekit-0.2.3-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d3abead72c63c3f0abf217f2d362e32475fe8c4caed0ad98018223b7183c066
|
|
BLAKE2b-256 checksum How to use checksums |
992b92e85d937b7a511789bccc1bdb3b038467c801b631d2682895425a4679cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for pyside6stylekit 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.