PyQt auto search bar
Project description
pyqt-auto-search-bar
PyQt auto search bar which is search icon on the left only exists as a label, not clickable button. See the preview below.
This is useful to instant search feature.
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-auto-search-bar
Included Packages
Methods Overview
-
setLabel(visibility: bool = True, text=None)
Set the visibility of search icon. You can set the text with this function too.
-
setSearchIcon(icon_filename: str)
Set the icon. icon should be svg file.
-
setPlaceHolder(text: str)
-
getSearchBar()
-
getSearchLineEdit()
-
getSearchLabel()
Preview
Code Sample
from PyQt5.QtWidgets import QApplication
from pyqt_auto_search_bar import AutoSearchBar
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
searchBar = AutoSearchBar()
searchBar.show()
app.exec_()
Result
See Also
-
pyqt-search-bar-menu - QMenu which has search bar as a first item to help you search the menu items.
-
pyqt-search-bar - This supports search button.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqt-auto-search-bar-0.0.11.tar.gz
.
File metadata
- Download URL: pyqt-auto-search-bar-0.0.11.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdc03ebf617b40d043e0d09f48d221334dd175a1c9cbd75edf7e13dba6e7466 |
|
MD5 | 62c6be21c155e0acb74b697d266f9c7d |
|
BLAKE2b-256 | 4f5dd16e6fa6fec6e7660e2ee01a7d46f85a31c798742b74af95a598beec7c90 |
File details
Details for the file pyqt_auto_search_bar-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: pyqt_auto_search_bar-0.0.11-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f9e629c146e9125be4cd818e3acac07ba2c34617e07857255ef519b96084e1 |
|
MD5 | 15a4839ae55c31c9ba0420eb28986cd4 |
|
BLAKE2b-256 | 36a18ab9e221759e3ce2274b1e8968d6017026589a7d51ddab2126d83bf3897c |