Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Dialog could not show file which contain Chinese char #1158

Closed
tiantian1645 opened this issue Aug 11, 2021 · 1 comment
Closed

File Dialog could not show file which contain Chinese char #1158

tiantian1645 opened this issue Aug 11, 2021 · 1 comment

Comments

@tiantian1645
Copy link

Version of Dear PyGui

Version: 0.8.58
Operating System: Windows 10

My Issue/Question

File Dialog could not show file which name contains Chinese char.

To Reproduce

Steps to reproduce the behavior:

  1. Add file Dialog as wiki
  2. Change file extension
  3. Run it
  4. See error

Expected behavior

File has the same extension should be shown.

Screenshots/Video

image

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

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

with dpg.file_dialog(directory_selector=False, show=False, callback=callback) as file_dialog_id:
    dpg.add_file_extension(".csv", color=(0, 255, 0, 255))


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

dpg.start_dearpygui()
@tiantian1645 tiantian1645 changed the title File Dialog could not show file which contain Chinese File Dialog could not show file which contain Chinese char Aug 11, 2021
@tiantian1645
Copy link
Author

duplicate #299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant