pyqt-search-bar-menu
PyQt QMenu which contains auto search bar as first item
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-search-bar-menu
Included Packages
- pyqt-instant-search-bar - Search bar at the top
Feature
- Search bar is at the very top of the menu, let user search
QAction's text. At this time menu list works like a completer.
Examples
Simple Code Sample
searchBarMenu = SearchBarMenu('Menu', self)
searchBarMenu.addAction('Action')
Executable Code Sample
from PyQt5.QtWidgets import QMainWindow, QApplication
from pyqt_search_bar_menu import SearchBarMenu
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
menubar = self.menuBar()
filemenu = menubar.addMenu('File')
searchBarMenu = SearchBarMenu('A Bunch of Actions', self)
for i in range(5):
action = searchBarMenu.addAction(f'Action{i+1}')
filemenu.addMenu(searchBarMenu)
menubar.addMenu(filemenu)
self.setMenuBar(menubar)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
ex = MainWindow()
ex.show()
app.exec_()
Result
Metadata
Release files for pyqt-search-bar-menu 0.0.11
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-menu-0.0.11.tar.gz | 3.0 kB | Without provenance | Details for pyqt-search-bar-menu-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_search_bar_menu-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for pyqt_search_bar_menu-0.0.11-py3-none-any.whl |
Total release size: 6.6 kB
Security for pyqt-search-bar-menu 0.0.11
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.