From 1d380264e48927fef49f9c87dbe71eee927ccbe3 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Fri, 29 Dec 2023 02:20:58 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix/chore]=20Main=20Window:=20Message=20Box?= =?UTF-8?q?.=20=E5=85=A5=E5=8A=9B=E3=83=9C=E3=83=83=E3=82=AF=E3=82=B9?= =?UTF-8?q?=E3=81=8C=E7=A9=BA=E3=81=AE=E7=8A=B6=E6=85=8B=E3=81=A7=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=82=BF=E3=83=BC=E3=82=AD=E3=83=BC=E3=82=92=E6=8A=BC?= =?UTF-8?q?=E3=81=97=E3=81=9F=E6=99=82=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=82=E2=80=BBCTkEntry=E3=81=8B=E3=82=89C?= =?UTF-8?q?TkTextbox=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=9F=E3=81=93?= =?UTF-8?q?=E3=81=A8=E3=81=AB=E3=82=88=E3=82=8B=E5=BD=B1=E9=9F=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view.py b/view.py index 46973a39..b105ffd6 100644 --- a/view.py +++ b/view.py @@ -490,7 +490,7 @@ class View(): def adjustedMessageBoxReturnFunction(_e): main_window_registers.get("message_box_bind_Return")() - return "break" + return "break" # For deleting the next line that will be inserted when the Enter key is pressed. entry_message_box = getattr(vrct_gui, "entry_message_box") entry_message_box.bind("", adjustedMessageBoxReturnFunction) @@ -788,7 +788,7 @@ class View(): # Common @staticmethod def _clearEntryBox(entry_widget): - entry_widget.delete("1.0", "end-1c") + entry_widget.delete("1.0", "end") def clearErrorMessage(self): vrct_gui._clearErrorMessage() @@ -1421,7 +1421,7 @@ class View(): # Message Box @staticmethod def getTextFromMessageBox(): - return vrct_gui.entry_message_box.get('1.0', CTK_END) + return vrct_gui.entry_message_box.get('1.0', "end-1c") def clearMessageBox(self): self._clearEntryBox(vrct_gui.entry_message_box)