pyqt-search-bar
PyQt search bar
Requirements
PyQt5 >= 5.8
Setup
python -m pip install pyqt-search-bar
Included Packages
Feature
-
Providing
searched(text: str)signal to activate user-defined method after search. -
Set place holder directly with
setPlaceHolder(text: str). -
Available to execute the search with either pressing enter or pressing the search button.
-
Toggled search button based on whether searchLineEdit(type is QLineEdit) is empty or not.
-
Being able to get searchLineEdit and searchButton, closeButton to let user customize on their own.
-
Being able to set the label of the search bar with
setLabel(visibility: bool, text: str). -
Being able to close the search bar with
setCloseBtn(visibility: bool). -
Set search/close button's icon with
setSearchIcon(icon_filename: str),setCloseIcon(icon_filename: str). Note: Icon should be SVG file. -
Get search bar, search line edit, search/close button with
getSearchBar,getSearchButton,getCloseButtonto change style or feature.
Example
Basic
Code Example
from PyQt5.QtWidgets import QApplication
from pyqt_search_bar import SearchBar
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
searchBar = SearchBar()
searchBar.setPlaceHolder('Input the text...')
searchBar.show()
app.exec_()
Result
Empty search bar (search button is disabled)
Search bar which is not empty (search button is enabled)
See Also
- pyqt-instant-search-bar - instant search bar gui
Metadata
Release files for pyqt-search-bar 0.0.14
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-search-bar-0.0.14.tar.gz | 5.1 kB | Without provenance | Details for pyqt-search-bar-0.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_search_bar-0.0.14-py3-none-any.whl | Python 3 | none | any | Details for pyqt_search_bar-0.0.14-py3-none-any.whl |
Total release size: 12.0 kB
Release files / pyqt-search-bar-0.0.14.tar.gz
| Download URL | pyqt-search-bar-0.0.14.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e7a496bc880c6f1fef9e7c9e7a3548c0e3cd0c3b38135719fcc86b671ba8840
|
|
BLAKE2b-256 checksum How to use checksums |
9e58db3f76945f0e9b955fdba6bc1e139b83508fd9da490cd27ae0bba48eb916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_search_bar-0.0.14-py3-none-any.whl
| Download URL | pyqt_search_bar-0.0.14-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
516870126b99129420bf054812331458577e0b684addc1fe2e3d63cba89dbed6
|
|
BLAKE2b-256 checksum How to use checksums |
4efe19df66613942847c308f7db60560449ad86ce2915e977591a2d1a0af5190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Security for pyqt-search-bar 0.0.14
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.