Socket
Socket
Sign inDemoInstall

pyqt-file-list-widget

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pyqt-file-list-widget

PyQt QListWidget for files (being able to drop the files based on user-defined extensions)


Maintainers
1

Readme

pyqt-file-list-widget

PyQt QListWidget for files (Being able to drop the files based on user-defined extensions)

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-file-list-widget

Included Packages

  • pyqt-tooltip-list-widget - parent class

  • pyqt-files-already-exists-dialog

Method Overview

  • addFilenames(filenames: list, cur_filename: str = '') - Add files on the list. cur_filename is current file name to set. Default is first one.

  • setFilenames(filenames: list, cur_filename: str = '') - Clear the list before adding new files on the list.

  • addDirectory(dirname: str, cur_filename: str = '') - Add files in directory.

  • setDirectory(dirname: str, cur_filename: str = '') - Clear the list before adding new files on the list.

  • setFilenameOnly(f: bool) - Show file name only. ex) C:...\abc.txt -> abc.txt

  • isFilenameOnly() -> bool

  • getSelectedFilenames() -> list

  • removeSelectedRows()

  • clear() - Overriding method.

  • getAbsFilename(basename: str) -> str - Get the absolute file path with base file name.

  • setExtensions(extensions: list) - Set the acceptable extensions of list.

  • setDuplicateEnabled(f: bool) - Allow list to have duplicate item.

  • isDuplicateEnabled() -> bool

  • getFilenameFromRow(r: int) -> str

Example

See pyqt-top-left-right-file-list-widget

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc