Skip to main content

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

image

See Also

Metadata

Release files for pyqt-auto-search-bar 0.0.11

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-auto-search-bar 0.0.11
File Size Uploaded
pyqt-auto-search-bar-0.0.11.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / pyqt-auto-search-bar-0.0.11.tar.gz

Download URL pyqt-auto-search-bar-0.0.11.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cbdc03ebf617b40d043e0d09f48d221334dd175a1c9cbd75edf7e13dba6e7466
BLAKE2b-256 checksum
How to use checksums
4f5dd16e6fa6fec6e7660e2ee01a7d46f85a31c798742b74af95a598beec7c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release files / pyqt_auto_search_bar-0.0.11-py3-none-any.whl

Download URL pyqt_auto_search_bar-0.0.11-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49f9e629c146e9125be4cd818e3acac07ba2c34617e07857255ef519b96084e1
BLAKE2b-256 checksum
How to use checksums
36a18ab9e221759e3ce2274b1e8968d6017026589a7d51ddab2126d83bf3897c
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.11 This release

2 release files

0.0.1

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