pyqt-foldable-item-list-widget
PyQt QListWidget which itemWidget is foldable
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-foldable-item-list-widget
Included Package
Example
Code Sample
from PyQt5.QtWidgets import QPushButton, QVBoxLayout, QLineEdit, QTextEdit, QWidget, QApplication
from pyqt_foldable_item_list_widget import FoldableListWidget
class Widget(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
addBtn = QPushButton('Add')
addBtn.clicked.connect(self.__add)
self.__foldableListWidget = FoldableListWidget()
lay = QVBoxLayout()
lay.addWidget(addBtn)
lay.addWidget(self.__foldableListWidget)
self.setLayout(lay)
def __add(self):
foldedItem = QLineEdit()
foldedItem.setPlaceholderText('Input...')
unfoldedItem = QTextEdit()
unfoldedItem.setPlaceholderText('Input...')
self.__foldableListWidget.setFoldableListWidgetItem(foldedItem, unfoldedItem)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
widget = Widget()
widget.show()
app.exec_()
Result
See Also
Metadata
Release files for pyqt-foldable-item-list-widget 0.0.12
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 |
|---|---|---|---|---|
| pyqt-foldable-item-list-widget-0.0.12.tar.gz | 4.0 kB | Without provenance | Details for pyqt-foldable-item-list-widget-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_foldable_item_list_widget-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for pyqt_foldable_item_list_widget-0.0.12-py3-none-any.whl |
Total release size: 10.1 kB
Release files / pyqt-foldable-item-list-widget-0.0.12.tar.gz
| Download URL | pyqt-foldable-item-list-widget-0.0.12.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
440fcf202faaa14c47e8f7c2579ed54f3814897953733df759ce4145a37f6130
|
|
BLAKE2b-256 checksum How to use checksums |
ee4278643ca3d0c833873e94a8e9281d6d6362b2578d5dead62be20154325a87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_foldable_item_list_widget-0.0.12-py3-none-any.whl
| Download URL | pyqt_foldable_item_list_widget-0.0.12-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30aff1f5feb99df7452508aff98d31c152fbc1917dfc5108da64ff96a9a1af4f
|
|
BLAKE2b-256 checksum How to use checksums |
a0f5823c9b6ba7b64a13a6bd16027dc938ef5b69ff16eb4f5dba27bb11a75f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Security for pyqt-foldable-item-list-widget 0.0.12
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.