quite6: QT UI Extension for Python3
==================================
|Build Status|
Features
--------
1. powerful signal-slot
2. user friendly widget classes
User Friendly Widget Classes
----------------------------
Uniform wrapper on frequently-used widget, including:
**container widget**:
1. `Widget <./quite6/gui/widgets/widget.py>`__
2. `Dialog <./quite6/gui/widgets/dialog.py>`__
3. `MainWindow <./quite6/gui/widgets/main_window.py>`__
4. `GroupBox <./quite6/gui/widgets/group_box.py>`__
5. `DockWidget <./quite6/gui/widgets/dock_widget.py>`__
**value widget**:
1. `Label <./quite6/gui/widgets/label.py>`__
2. `LineEdit <./quite6/gui/widgets/line_edit.py>`__
3. `ComboBox <./quite6/gui/widgets/combo_box.py>`__
4. `ListWidget <./quite6/gui/widgets/list_widget.py>`__
5. `SpinBox <./quite6/gui/widgets/spin_box.py>`__
6. `DoubleSpinBox <./quite6/gui/widgets/double_spin_box.py>`__
**behavior widget**:
1. `InputDialog <./quite6/gui/widgets/input_dialog.py>`__
2. `Action <./quite6/gui/widgets/action.py>`__
3. `Shortcut <./quite6/gui/widgets/shortcut.py>`__
4. `PushButton <./quite6/gui/widgets/push_button.py>`__
Container Widget
~~~~~~~~~~~~~~~~
*Example 1*: `create widget <./examples/1_create_widget/example-1.py>`__
.. code:: python
import quite6
w = quite6.Widget()
w.exec()
.. figure:: docs/images/1.simple.widget.png
:alt: Simple Widget
Simple Widget
*Example 2*: `nested widget <./examples/2_nested_widget/example-2.py>`__
.. code:: python
import quite6
class CustomWidget(quite6.Widget):
def paint(self, painter: quite6.Painter):
painter.setFont(quite6.QFont("Courier New", 14.0))
painter.draw_text_bottom_right(quite6.PointF(0, 0), "Custom Widget")
painter.end()
main_window = quite6.MainWindow()
custom_widget = CustomWidget(parent=main_window)
main_window.set_central_widget(custom_widget)
main_window.exec()
.. figure:: docs/images/2.nested.widget.png
:alt: Nested Widget
Nested Widget
*Example 3*: `widget from ui
file <./examples/3_widget_from_ui_file/example-3.py>`__
.. code:: python
import os
from quite6 import *
class CustomWidget(Widget):
def paint(self, painter: Painter):
w, _ = self.size
painter.setFont(QFont("Courier New", 14.0))
painter.draw_text_bottom_right(PointF(0, 0), "So Cool!")
painter.draw_text_bottom_left(PointF(w, 0), "From Custom Widget")
painter.end()
main_window = load_ui(filename=os.path.join(os.path.dirname(__file__), 'main_window.ui'))
main_window.set_central_widget(CustomWidget(parent=main_window))
main_window.exec()
Use QtDesigner to create a ui file:
.. figure:: docs/images/3.ui.design.png
:alt: UI Design
UI Design
.. |Build Status| image:: https://travis-ci.com/KD-Group/quite6.svg?branch=master
:target: https://travis-ci.com/KD-Group/quite6
Raw data
{
"_id": null,
"home_page": "https://github.com/KD-Group/quite6",
"name": "quite6",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "qt ui",
"author": "SF-Zhou",
"author_email": "sfzhou.scut@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e4/42/1ab73d11bf8d864e6239736b28ba558018fa0c14467ee0a30e8f90c7e1fe/quite6-1.0.10.tar.gz",
"platform": null,
"description": "quite6: QT UI Extension for Python3\r\n==================================\r\n\r\n|Build Status|\r\n\r\nFeatures\r\n--------\r\n\r\n1. powerful signal-slot\r\n2. user friendly widget classes\r\n\r\nUser Friendly Widget Classes\r\n----------------------------\r\n\r\nUniform wrapper on frequently-used widget, including:\r\n\r\n**container widget**:\r\n\r\n1. `Widget <./quite6/gui/widgets/widget.py>`__\r\n2. `Dialog <./quite6/gui/widgets/dialog.py>`__\r\n3. `MainWindow <./quite6/gui/widgets/main_window.py>`__\r\n4. `GroupBox <./quite6/gui/widgets/group_box.py>`__\r\n5. `DockWidget <./quite6/gui/widgets/dock_widget.py>`__\r\n\r\n**value widget**:\r\n\r\n1. `Label <./quite6/gui/widgets/label.py>`__\r\n2. `LineEdit <./quite6/gui/widgets/line_edit.py>`__\r\n3. `ComboBox <./quite6/gui/widgets/combo_box.py>`__\r\n4. `ListWidget <./quite6/gui/widgets/list_widget.py>`__\r\n5. `SpinBox <./quite6/gui/widgets/spin_box.py>`__\r\n6. `DoubleSpinBox <./quite6/gui/widgets/double_spin_box.py>`__\r\n\r\n**behavior widget**:\r\n\r\n1. `InputDialog <./quite6/gui/widgets/input_dialog.py>`__\r\n2. `Action <./quite6/gui/widgets/action.py>`__\r\n3. `Shortcut <./quite6/gui/widgets/shortcut.py>`__\r\n4. `PushButton <./quite6/gui/widgets/push_button.py>`__\r\n\r\nContainer Widget\r\n~~~~~~~~~~~~~~~~\r\n\r\n*Example 1*: `create widget <./examples/1_create_widget/example-1.py>`__\r\n\r\n.. code:: python\r\n\r\n import quite6\r\n\r\n w = quite6.Widget()\r\n w.exec()\r\n\r\n.. figure:: docs/images/1.simple.widget.png\r\n :alt: Simple Widget\r\n\r\n Simple Widget\r\n\r\n*Example 2*: `nested widget <./examples/2_nested_widget/example-2.py>`__\r\n\r\n.. code:: python\r\n\r\n import quite6\r\n\r\n\r\n class CustomWidget(quite6.Widget):\r\n def paint(self, painter: quite6.Painter):\r\n painter.setFont(quite6.QFont(\"Courier New\", 14.0))\r\n painter.draw_text_bottom_right(quite6.PointF(0, 0), \"Custom Widget\")\r\n painter.end()\r\n\r\n main_window = quite6.MainWindow()\r\n custom_widget = CustomWidget(parent=main_window)\r\n main_window.set_central_widget(custom_widget)\r\n main_window.exec()\r\n\r\n.. figure:: docs/images/2.nested.widget.png\r\n :alt: Nested Widget\r\n\r\n Nested Widget\r\n\r\n*Example 3*: `widget from ui\r\nfile <./examples/3_widget_from_ui_file/example-3.py>`__\r\n\r\n.. code:: python\r\n\r\n import os\r\n from quite6 import *\r\n\r\n\r\n class CustomWidget(Widget):\r\n def paint(self, painter: Painter):\r\n w, _ = self.size\r\n painter.setFont(QFont(\"Courier New\", 14.0))\r\n painter.draw_text_bottom_right(PointF(0, 0), \"So Cool!\")\r\n painter.draw_text_bottom_left(PointF(w, 0), \"From Custom Widget\")\r\n painter.end()\r\n\r\n\r\n main_window = load_ui(filename=os.path.join(os.path.dirname(__file__), 'main_window.ui'))\r\n main_window.set_central_widget(CustomWidget(parent=main_window))\r\n main_window.exec()\r\n\r\nUse QtDesigner to create a ui file:\r\n\r\n.. figure:: docs/images/3.ui.design.png\r\n :alt: UI Design\r\n\r\n UI Design\r\n\r\n.. |Build Status| image:: https://travis-ci.com/KD-Group/quite6.svg?branch=master\r\n :target: https://travis-ci.com/KD-Group/quite6\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "QT UI Extension",
"version": "1.0.10",
"project_urls": {
"Homepage": "https://github.com/KD-Group/quite6"
},
"split_keywords": [
"qt",
"ui"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e4421ab73d11bf8d864e6239736b28ba558018fa0c14467ee0a30e8f90c7e1fe",
"md5": "0e50d14f83f89faeb6283334e6b904a0",
"sha256": "c94b4f97415d742c55ff7b148990c53098f176396500da9a40bee7615e2f2878"
},
"downloads": -1,
"filename": "quite6-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "0e50d14f83f89faeb6283334e6b904a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 24805,
"upload_time": "2024-07-07T05:42:17",
"upload_time_iso_8601": "2024-07-07T05:42:17.390679Z",
"url": "https://files.pythonhosted.org/packages/e4/42/1ab73d11bf8d864e6239736b28ba558018fa0c14467ee0a30e8f90c7e1fe/quite6-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-07 05:42:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KD-Group",
"github_project": "quite6",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"appveyor": true,
"requirements": [],
"lcname": "quite6"
}