From 092a820265f00fa6d1b955bcf445886e5f8deedf Mon Sep 17 00:00:00 2001 From: likianta Date: Sun, 18 Dec 2022 22:12:21 +0800 Subject: [PATCH] Formal release --- .../eg01_viscous_indicator_anim/main.py | 7 +++---- examples/console_print/main.py | 2 +- pyproject.toml | 4 ++-- qmlease/__main__.py | 6 +++--- qmlease/qmlside/widgets_backend/__init__.py | 3 +-- qmlease/widgets/LKWidgets/Containers/LKRow.qml | 2 +- requirements.txt | 2 +- 7 files changed, 12 insertions(+), 14 deletions(-) diff --git a/examples/animations_(deleted)/eg01_viscous_indicator_anim/main.py b/examples/animations_(deleted)/eg01_viscous_indicator_anim/main.py index f307b1b..1c61410 100644 --- a/examples/animations_(deleted)/eg01_viscous_indicator_anim/main.py +++ b/examples/animations_(deleted)/eg01_viscous_indicator_anim/main.py @@ -1,4 +1,3 @@ -from lk_qtquick_scaffold import * - -hot_loader.start('view.qml') -# app.start('view.qml') +from lk_utils import xpath +from qmlease import app +app.run(xpath('view.qml'), debug=True) diff --git a/examples/console_print/main.py b/examples/console_print/main.py index 78ac7da..b9330e1 100644 --- a/examples/console_print/main.py +++ b/examples/console_print/main.py @@ -1,3 +1,3 @@ -from lk_qtquick_scaffold import app from lk_utils import relpath +from qmlease import app app.run(relpath('view.qml')) diff --git a/pyproject.toml b/pyproject.toml index 40ee8e0..60280cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "qmlease" -version = "3.0.0b1" +version = "3.0.0" homepage = "https://github.com/likianta/qmlease" description = "A flexible toolkit for Python programmer to efficiently develop QML graphical user interface." readme = "README.md" @@ -17,7 +17,7 @@ python = "^3.8" argsense = "*" lambda-ex = "^1.1.0" lk-logger = "^5.4.7" -lk-utils = "^2.5.2" +lk-utils = "^2.5.3" qtpy = "^2.3.0" pyside6 = { version = "*", optional = true } pyside2 = { version = "*", optional = true } diff --git a/qmlease/__main__.py b/qmlease/__main__.py index 326f472..f438300 100644 --- a/qmlease/__main__.py +++ b/qmlease/__main__.py @@ -1,9 +1,9 @@ """ usage: run in command line: - py -m lk_qtquick_scaffold -h - py -m lk_qtquick_scaffold run - py -m lk_qtquick_scaffold run --debug + py -m qmlease -h + py -m qmlease run + py -m qmlease run --debug ... """ from argsense import cli diff --git a/qmlease/qmlside/widgets_backend/__init__.py b/qmlease/qmlside/widgets_backend/__init__.py index f8a4074..7f4dfd6 100644 --- a/qmlease/qmlside/widgets_backend/__init__.py +++ b/qmlease/qmlside/widgets_backend/__init__.py @@ -4,5 +4,4 @@ from .slider import Slider from .util import util -# see register method in `~/lk_qtquick_scaffold/application.py > -# def register_backend`. +# see registers in `qmlease/application.py : def register_backend`. diff --git a/qmlease/widgets/LKWidgets/Containers/LKRow.qml b/qmlease/widgets/LKWidgets/Containers/LKRow.qml index c005da1..e84594a 100644 --- a/qmlease/widgets/LKWidgets/Containers/LKRow.qml +++ b/qmlease/widgets/LKWidgets/Containers/LKRow.qml @@ -5,7 +5,7 @@ Row { spacing: pysize.spacing_m property string alignment: 'vcenter' - // see [lib:lk-qtquick-scaffold/qmlside/layout_helper/layout_helper.py + // see [lib:qmlease/qmlside/layout_helper/layout_helper.py // : def auto_align : docstring]. property bool autoSize: false diff --git a/requirements.txt b/requirements.txt index 01b8e2c..1c0fbf2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ argsense >= 0.5.2 lambda-ex >= 1.1.0 lk-logger >= 5.4.7 -lk-utils >= 2.5.2 +lk-utils >= 2.5.3 # pyside6 qtpy typing-extensions