hoffstadt / hoffstadt/DearPyGui

Selecting multiple dispersed files in file_dialog does not work with CTRL on windows

Open
#1,406 1 comment 0 reactions 0 assignees View on GitHub
can't reproduce platform: MacOS platform: Windows state: invalid type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 1.0.2
Operating System: Windows 10 (virtual machine)

## My Issue/Question

On windows, if I try to select multiple files not next to each other with CTRL it does not work. While holding CTRL the file name does not change when picking other files. Seems like CTRL is bound since the file name does not update but it doesn't add files. I can select multiple contiguous files with SHIFT as expected.

On Mac both CTRL and SHIFT work as expected with the `file_dialog`.

## Standalone, minimal, complete and verifiable example

```python
# Unable to use ctrl to select dispersed files on windows

import dearpygui.dearpygui as dpg
import dearpygui

dpg.create_context()

def callback(sender, app_data):
print("Sender: ", sender)
print("App Data: ", app_data)

with dpg.file_dialog(show=False, directory_selector=False, tag="file_dialog_tag",
callback=callback, file_count=2):
dpg.add_file_extension(".*")

with dpg.window(label="Tutorial", width=800, height=300):
dpg.add_button(label="File Selector", callback=lambda: dpg.show_item("file_dialog_tag"))

dpg.create_viewport()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.