widgets_pagination_view
A lib that let you organise a list of inheritance of Pyside6.QtWidgets.QWigdet in a pagination view.
How does it works ?
This package takes a list of objects that inherit from Pyside6.QtWidgets.QWidget and organizes them evenly into pages (which are derived from QtWidgets.QWidget).
Usage
First, create a new instance of a WidgetsPaginationView (this is the widgets which handle your widgets)
from PySide6 import QtWidgets
from widgets_pagination_view import InPageWidget, WidgetsPaginationView
# Creating the Qt App
app = QtWidgets.QApplication()
# Creating a main window
main_window = QtWidgets.QMainWindow()
# Creating the base class of the widgets
class MyButton(InPageWidget):
def __init__(self, text):
super().__init__()
self.lyt = QtWidgets.QHBoxLayout()
self.setLayout(self.lyt)
self.button = QtWidgets.QPushButton(text)
self.lyt.addWidget(self.button)
self.button.clicked.connect(lambda: print(text, "clicked !"))
# Creating some widgets
buttons = [MyButton(str(i)) for i in range(100)]
# Creating a new instance of WidgetsPaginationView
w_page_view = WidgetsPaginationView(
parent=None,
widgets = buttons,
max_loadables_pages_count=5,
widgets_by_page_count=10,
)
# Define w_pages_view as the central widget
main_window.setCentralWidget(w_page_view)
#Showing the window
main_window.show()
#Launching the app
app.exec()
parent: A valid QtWidgets.QWidget parent widget or None.
widgets: The list of widgets to display (as in the example, widgets must inherit from the InPageWidget class of the package).
max_loadables_pages_count: By default, this package loads and unloads widget pages on every page change, which optimizes performance and prevents slowdowns. The max_loadables_pages_count variable defines the maximum number of pages that can be loaded into memory simultaneously.
The widgets_by_pages_count parameter defines the number of widgets that each page can contain.
The result :
Installation
pip install widgets_pagination_view
# Or
python -m pip install widgets_pagination_view
Requirements
This project requires the following packages (they will be installed automatically):
- PySide6
About
This project is developed by SoloEnder under the MIT Licence.
Metadata
Release files for widgets-pagination-view 1.1.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 |
|---|---|---|---|---|
| widgets_pagination_view-1.1.3.tar.gz | 11.7 kB | Without provenance | Details for widgets_pagination_view-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| widgets_pagination_view-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for widgets_pagination_view-1.1.3-py3-none-any.whl |
Total release size: 23.4 kB
Release files / widgets_pagination_view-1.1.3.tar.gz
| Download URL | widgets_pagination_view-1.1.3.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce40a535cd1aff7b1682753b8170f161e6779b946a746e9375b6594222f76aa1
|
|
BLAKE2b-256 checksum How to use checksums |
22945d531dbfeace4be3e694886fa823bded19a2964a365f689e08f4cc424a90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / widgets_pagination_view-1.1.3-py3-none-any.whl
| Download URL | widgets_pagination_view-1.1.3-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56b55fea28910d1c6d30c970afcaffdd0cec3ff8d282b3f33b8441aaaf786c2f
|
|
BLAKE2b-256 checksum How to use checksums |
6cde8a7faf267157291aacd0e19966c730d7513c55f4a74448396cca2180b0b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for widgets-pagination-view 1.1.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.