-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
135 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# github action build python package | ||
|
||
name: Build Python Package | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
tags: ['*'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Install build dependencies | ||
run: | | ||
python -m pip install build | ||
- name: Build package using build | ||
run: | | ||
python -m Build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
# job to upload the package to PyPI | ||
upload-to-pypi: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/<your-pypi-project-name> | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
print-hash: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,71 @@ | ||
|
||
# Qore Widgets | ||
|
||
status: Working in progress | ||
|
||
Yet another collection of those core widgets for a modern qt application. | ||
![PyPI - Version](https://img.shields.io/pypi/v/QoreWidgets)![PyPI - Downloads](https://img.shields.io/pypi/dm/QoreWidgets?label=monthly%20installed)![GitHub License](https://img.shields.io/github/license/du33169/QoreWidgets) | ||
|
||
The widgets is designed to be functional extended but not decorated, style them as you wish. | ||
Yet another collection of those core widgets for a modern Qt application. | ||
|
||
Currently only PySide6 is supported. | ||
Backend Support: Currently **only PySide6 is supported.** | ||
|
||
## Widget List | ||
SideTabWidget | ||
ImmersiveTitleBar | ||
FramelessWindow | ||
ImmersiveMessageBox(todo) | ||
|
||
## Install | ||
| Qore Widget<br>[Base Widget] | Desc | Screenshot | | ||
| ----------------------------------------------------- | ------------------------------------------------------------ | ---------- | | ||
| **SideTabWidget**<br>[TabWidget] | A TabWidget with horizontal and foldable tabs. Animated. | | | ||
| **ImmersiveTitleBar**<br>[ImmersiveTitleBarContainer] | A simple immersive title bar with icon, title, and close, maximize, minimize buttons. | | | ||
| **ImmersiveTitleBarContainer**<br>[QWidget] | An immersive title bar Container with only buttons. Put any widgets you like. | | | ||
| **FramelessWindow**<br>[QMainWindow] | A frameless window with resize grips. Better use it with the ImmersiveTitleBar. | | | ||
| **ImmersiveMesageBox** <br>[QMessageBox] | (todo) | | | ||
| **DrawerWidget** | (todo) | | | ||
|
||
|
||
|
||
## Installation | ||
|
||
```bash | ||
pip install qorewidgets | ||
``` | ||
|
||
## Usage | ||
|
||
## Gallery | ||
There are two ways to integrate QoreWidgets into your project: | ||
|
||
### Programmatically | ||
|
||
Most Qore Widgets are designed as drop-in replacements for their corresponding base widgets. | ||
|
||
### With Qt Designer | ||
|
||
Note: If you installed PySide6 using pip, the designer is also installed as `pyside6-designer` executable. | ||
|
||
1. Create the base widget in Qt Designer | ||
2. Right-click on the widget and select "Promote To..." | ||
3. Enter the desired Qore Widget name as the **promoted class name**, and "QoreWidgets.h" as the **header file** | ||
4. Use the `pyside6-uic` tool (also installed with PySide6) to convert the .ui file to a .py file | ||
5. the base widget will be replaced by the appropriate Qore Widget during the conversion | ||
|
||
Refer to the [Qt Doc: using custom widgets in designer](https://doc.qt.io/qt-6/designer-using-custom-widgets.html) for more detailed instructions. | ||
|
||
### Documentation | ||
|
||
for more infomation, check out our [QoreWidgets Documentation](https://github.com/du33169/QoreWidgets/wiki). | ||
|
||
|
||
|
||
## Examples | ||
|
||
The QoreWidgets Gallery app provides examples about how to use these widgets. To run the gallery app: | ||
|
||
```bash | ||
git clone https://github.com/du33169/QoreWidgets | ||
cd QoreWidgets | ||
pip install PySide6 | ||
python gallery/app.py | ||
``` | ||
|
||
Note: the gallery app will first attempt to import QoreWidgets from installed python packages. If not installed, it will import from the local `src` directory. | ||
|
||
|
||
|
||
## Styling | ||
|
||
## Acknowledgment | ||
QoreWidgets mainly focus on functional enhancements with minimal emphasis on decoration. However, they should fit in with your global theme or stylesheets, for example, [QDarkStyleSheet](https://github.com/ColinDuquesnoy/QDarkStyleSheet). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters