PyQt instant search bar
Project description
pyqt-instant-search-bar
PyQt instant search bar.
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-instant-search-bar
Included Packages
Methods/Signal 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()
-
searched(text: str)
signal to get the text which is written in the search bar. See the example below.
Preview
Code Sample
from PyQt5.QtWidgets import QApplication
from pyqt_instant_search_bar import InstantSearchBar
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
searchBar = InstantSearchBar()
searchBar.searched.connect(print) # print the written text
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. (click to search, not instant search)
Project details
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
Close
Hashes for pyqt-instant-search-bar-0.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a3ca93315d99b2041bedf7f17bca153bad5c3a4baea4e9862b1e6548aa96f55 |
|
MD5 | 756eca589b351a385886980339a3beba |
|
BLAKE2b-256 | f1ac0a2d16b7f392ceaf2c25dd0c631af8f1c5b9aeb2ffcab6646794a01d1604 |
Close
Hashes for pyqt_instant_search_bar-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7192f88bf05f514bf6252f5ecfc73f62d157cf86ab0d8a5dd8c3d1d4b8dd60c2 |
|
MD5 | a060992d91a3dca27c71fb106794dd59 |
|
BLAKE2b-256 | 1cc943594197f9494cf46fb8e22c04ae586e344a09dd972bb38c70f4f1530674 |