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

pop-up window #34

Closed
rcyggdra opened this issue Jun 30, 2024 · 2 comments
Closed

pop-up window #34

rcyggdra opened this issue Jun 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rcyggdra
Copy link

Because the command window does not support Chinese character output,
PixPin_2024-06-30_19-15-24
I use start cmd /k to run the command in a new CMD window. I want to cancel the pop-up window after running tuw. What should I do?
PixPin_2024-06-30_19-19-02

@matyalatte
Copy link
Owner

Thanks for the report.

Because the command window does not support Chinese character output

You can see it supports Chinese characters already.
output

Probably, the cause is locale (like gb2312 and big5) for python. Tuw only supports user's default locale. So, it can show garbled strings if your python script changes the setting.
I opened a new issue for it.
Sync locale with child processes on Windows · Issue #36 · matyalatte/tuw

I use start cmd /k to run the command in a new CMD window. I want to cancel the pop-up window after running tuw. What should I do?

I opened another issue because there is nothing you can do for now.
Option to disable message dialogues · Issue #37 · matyalatte/tuw

@matyalatte
Copy link
Owner

I'll close this issue because I added an option to skip the pop-up window at v0.7.0.

You can skip the dialog with "show_success_dialog": false.

{
    "gui": [
        {
            "label": "Option to skip success dialog",
            "show_success_dialog": false,
            "command": "echo Hello!",
            "components": []
        }
    ]
}

The garbled string issue will be addressed in #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants