Skip to main content

pyqt-instant-search-bar

image

PyQt(+PySide) 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()

  • 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

image

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)

  • pyqt-database-example - Search the sql database table(using QSqlTableModel) with instant search bar.

Metadata

Release files for pyqt-instant-search-bar 0.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyqt-instant-search-bar 0.0.18
File Size Uploaded
pyqt-instant-search-bar-0.0.18.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-instant-search-bar 0.0.18
File Interpreter ABI Platform
pyqt_instant_search_bar-0.0.18-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / pyqt-instant-search-bar-0.0.18.tar.gz

Download URL pyqt-instant-search-bar-0.0.18.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d08f28e352733cc08c06fe5fa36bfc9e9188340ada33777ffe42c2c1c4824cc0
BLAKE2b-256 checksum
How to use checksums
399d0be61c04010bdac27562e7aa0a633ad3ba2475e468d8920e8b3a5f46ebfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release files / pyqt_instant_search_bar-0.0.18-py3-none-any.whl

Download URL pyqt_instant_search_bar-0.0.18-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7682e921f58395bd336b3fa58a14d554347cabbe4175e22374ad1b021237b928
BLAKE2b-256 checksum
How to use checksums
fdf28e25118b39cd543032e9383b26230f5bd993326d553e4cdc6210d606c591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.18 This release

2 release files

0.0.17

2 release files

0.0.12

2 release files

0.0.11

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page