forked from phenom-films/dayu_widgets
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
4808eb9
commit 3f6fd15
Showing
250 changed files
with
1,573 additions
and
875 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,43 @@ | ||
name: Test and Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12] | ||
qt-binding: ['pyside2', 'pyside6'] | ||
exclude: | ||
# PySide2 不支持 Python 3.11+ | ||
- python-version: 3.11 | ||
qt-binding: 'pyside2' | ||
- python-version: 3.12 | ||
qt-binding: 'pyside2' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nox | ||
- name: Run tests | ||
run: | | ||
nox -s test -- --qt-binding=${{ matrix.qt-binding }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: 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 |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Import built-in modules | ||
import os | ||
|
||
|
||
DEFAULT_STATIC_FOLDER = os.path.join(__path__[0], "static") | ||
CUSTOM_STATIC_FOLDERS = [] | ||
# Import local modules | ||
from dayu_widgets.theme import MTheme | ||
|
||
|
||
dayu_theme = MTheme("dark", primary_color=MTheme.orange) | ||
# dayu_theme.default_size = dayu_theme.small | ||
# dayu_theme = MTheme('light') | ||
|
||
# Import local modules | ||
from dayu_widgets.alert import MAlert | ||
from dayu_widgets.avatar import MAvatar | ||
from dayu_widgets.badge import MBadge | ||
from dayu_widgets.breadcrumb import MBreadcrumb | ||
from dayu_widgets.browser import MClickBrowserFilePushButton | ||
from dayu_widgets.browser import MClickBrowserFileToolButton | ||
from dayu_widgets.browser import MClickBrowserFolderPushButton | ||
from dayu_widgets.browser import MClickBrowserFolderToolButton | ||
from dayu_widgets.browser import MDragFileButton | ||
from dayu_widgets.browser import MDragFolderButton | ||
from dayu_widgets.button_group import MCheckBoxGroup | ||
from dayu_widgets.button_group import MPushButtonGroup | ||
from dayu_widgets.button_group import MRadioButtonGroup | ||
from dayu_widgets.button_group import MToolButtonGroup | ||
from dayu_widgets.card import MCard | ||
from dayu_widgets.card import MMeta | ||
from dayu_widgets.carousel import MCarousel | ||
from dayu_widgets.check_box import MCheckBox | ||
from dayu_widgets.collapse import MCollapse | ||
from dayu_widgets.combo_box import MComboBox | ||
from dayu_widgets.divider import MDivider | ||
from dayu_widgets.field_mixin import MFieldMixin | ||
from dayu_widgets.flow_layout import MFlowLayout | ||
from dayu_widgets.item_model import MSortFilterModel | ||
from dayu_widgets.item_model import MTableModel | ||
from dayu_widgets.item_view import MBigView | ||
from dayu_widgets.item_view import MListView | ||
from dayu_widgets.item_view import MTableView | ||
from dayu_widgets.item_view import MTreeView | ||
from dayu_widgets.item_view_full_set import MItemViewFullSet | ||
from dayu_widgets.item_view_set import MItemViewSet | ||
from dayu_widgets.label import MLabel | ||
from dayu_widgets.line_edit import MLineEdit | ||
from dayu_widgets.line_tab_widget import MLineTabWidget | ||
from dayu_widgets.loading import MLoading | ||
from dayu_widgets.loading import MLoadingWrapper | ||
from dayu_widgets.menu import MMenu | ||
from dayu_widgets.menu_tab_widget import MMenuTabWidget | ||
from dayu_widgets.message import MMessage | ||
from dayu_widgets.page import MPage | ||
from dayu_widgets.progress_bar import MProgressBar | ||
from dayu_widgets.progress_circle import MProgressCircle | ||
from dayu_widgets.push_button import MPushButton | ||
from dayu_widgets.radio_button import MRadioButton | ||
from dayu_widgets.slider import MSlider | ||
from dayu_widgets.spin_box import MDateEdit | ||
from dayu_widgets.spin_box import MDateTimeEdit | ||
from dayu_widgets.spin_box import MDoubleSpinBox | ||
from dayu_widgets.spin_box import MSpinBox | ||
from dayu_widgets.spin_box import MTimeEdit | ||
from dayu_widgets.switch import MSwitch | ||
from dayu_widgets.tab_widget import MTabWidget | ||
from dayu_widgets.text_edit import MTextEdit | ||
from dayu_widgets.toast import MToast | ||
from dayu_widgets.tool_button import MToolButton | ||
|
||
|
||
__all__ = [ | ||
"MAlert", | ||
"MAvatar", | ||
"MBadge", | ||
"MBreadcrumb", | ||
"MClickBrowserFilePushButton", | ||
"MClickBrowserFileToolButton", | ||
"MClickBrowserFolderPushButton", | ||
"MClickBrowserFolderToolButton", | ||
"MDragFileButton", | ||
"MDragFolderButton", | ||
"MCheckBoxGroup", | ||
"MPushButtonGroup", | ||
"MRadioButtonGroup", | ||
"MToolButtonGroup", | ||
"MCard", | ||
"MMeta", | ||
"MCarousel", | ||
"MCheckBox", | ||
"MCollapse", | ||
"MComboBox", | ||
"MDivider", | ||
"MFieldMixin", | ||
"MFlowLayout", | ||
"MSortFilterModel", | ||
"MTableModel", | ||
"MBigView", | ||
"MListView", | ||
"MTableView", | ||
"MTreeView", | ||
"MItemViewFullSet", | ||
"MItemViewSet", | ||
"MLabel", | ||
"MLineEdit", | ||
"MLineTabWidget", | ||
"MLoading", | ||
"MLoadingWrapper", | ||
"MMenu", | ||
"MMenuTabWidget", | ||
"MMessage", | ||
"MPage", | ||
"MProgressBar", | ||
"MProgressCircle", | ||
"MPushButton", | ||
"MRadioButton", | ||
"MSlider", | ||
"MDateEdit", | ||
"MDateTimeEdit", | ||
"MDoubleSpinBox", | ||
"MSpinBox", | ||
"MTimeEdit", | ||
"MSwitch", | ||
"MTabWidget", | ||
"MTextEdit", | ||
"MToast", | ||
"MToolButton", | ||
] |
File renamed without changes.
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
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
Oops, something went wrong.