Metadata-Version: 2.1
Name: pyqt-file-list-widget
Version: 0.0.1
Summary: PyQt QListWidget for files (being able to drop the files based on user-defined extensions)
Home-page: https://github.com/yjg30737/pyqt-file-list-widget.git
Author: Jung Gyu Yoon
Author-email: yjg30737@gmail.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE


# 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

* <a href="https://github.com/yjg30737/pyqt-tooltip-list-widget.git">pyqt-tooltip-list-widget</a> - parent class

* <a href="https://github.com/yjg30737/pyqt-files-already-exists-dialog.git">pyqt-files-already-exists-dialog</a>



## 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 <a href="https://github.com/yjg30737/pyqt-top-left-right-file-list-widget.git">pyqt-top-left-right-file-list-widget</a>







