PyQt QListWidget for files (being able to drop the files based on user-defined extensions)
Project description
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
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
Project details
Release history Release notifications | RSS feed
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
Hashes for pyqt-file-list-widget-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f76b590ff44fd840df93907143757eff9ca1b4dacd2f36c260f562b2997a4f4 |
|
MD5 | 8790caa770a8dbbd185692ff0a29f9f8 |
|
BLAKE2b-256 | 48ceb399c7beb61e60150fbd02406886311e64e28c4a428c46ba82298268a173 |
Hashes for pyqt_file_list_widget-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28df6961dba8116c08694b3f8346ab24cbed35285d7b9667dd5558764ce56e89 |
|
MD5 | 7fc642d9859d730697589e185ae1f432 |
|
BLAKE2b-256 | ea43c0416e16c76b1facd99868c4ca60fa76b326e8e5c505e969ad232850ce4b |