matyalatte / tuw

Tiny GUI wrapper for command-line tools
MIT License
31 stars 2 forks source link

pop-up window #34

Closed rcyggdra closed 4 months ago

rcyggdra commented 5 months ago

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 commented 5 months ago

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 commented 4 months ago

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.