From 90c9a8bde220a653c7893b6fd7d41aaf08037f3d Mon Sep 17 00:00:00 2001 From: DONG Date: Fri, 5 Jun 2026 13:54:08 +0800 Subject: [PATCH 1/2] Add target-language presets (incl. English) as an editable combobox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 目标语言 field is now a combobox preloaded with 简体中文 / English / 繁體中文 / 日本語 / 한국어, while still allowing any custom language to be typed. Co-Authored-By: Claude Opus 4.8 --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 7adb3dd..0874f42 100644 --- a/app.py +++ b/app.py @@ -500,7 +500,9 @@ def __init__(self, app: FloatTranslate): # --- target language --- self._label(top, "目标语言", r) - tk.Entry(top, textvariable=self.var_target, width=33).grid( + # Editable combobox: pick a common target or type any language name. + ttk.Combobox(top, textvariable=self.var_target, width=30, + values=["简体中文", "English", "繁體中文", "日本語", "한국어"]).grid( row=r, column=1, sticky="ew", padx=(10, 0), pady=4) r += 1 From 1b521d19257dd592e1ebf8c9bbac0961ce3000cc Mon Sep 17 00:00:00 2001 From: DONG Date: Fri, 5 Jun 2026 14:14:48 +0800 Subject: [PATCH 2/2] Add MIT license Co-Authored-By: Claude Opus 4.8 --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e8875d9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 CH-DONG77 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.