An open API service indexing awesome lists of open source software.

https://github.com/limafresh/ctkfiledialog

Unofficial file dialog for CustomTkinter
https://github.com/limafresh/ctkfiledialog

custom-widget custom-window customtkinter customtkinter-file-dialog customtkinter-widgets filebrowser filedialog

Last synced: about 1 year ago
JSON representation

Unofficial file dialog for CustomTkinter

Awesome Lists containing this project

README

          

# CTkFileDialog
Unofficial file dialog for CustomTkinter.

![Screenshot](https://raw.githubusercontent.com/limafresh/CTkFileDialog/main/screenshot1.png)

![Screenshot](https://raw.githubusercontent.com/limafresh/CTkFileDialog/main/screenshot2.png)

## How to use?
Download and place the CTkFileDialog folder into your script folder.

### Open file
```python
dialog = CTkFileDialog(root, save=False)
if dialog.path:
print(dialog.path)
```

### Save file
```python
dialog = CTkFileDialog(root, save=True)
if dialog.path:
print(dialog.path)
```

## Arguments
| Argument | Description |
| ---------------- | ------------ |
| **width** | dialog window width |
| **height** | dialog window height |
| **initialdir** | initial dir |
| **title** | dialog window title |
| **save** | `save=False` if open file, `save=True` if save file |
| **save_extension** | Save extension, for example save_extension=".txt" |