From e94fc56acddc23320b66f2bd9f875e5d34de8ed4 Mon Sep 17 00:00:00 2001 From: hwf1324 <1398969445@qq.com> Date: Tue, 16 Jun 2026 10:05:54 +0800 Subject: [PATCH 1/3] Temporarily set the layout of the radio box for the speech dictionary entry type to vertical. --- source/gui/speechDict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/speechDict.py b/source/gui/speechDict.py index 56b8ed9d781..3dfb495f598 100644 --- a/source/gui/speechDict.py +++ b/source/gui/speechDict.py @@ -65,7 +65,7 @@ def __init__(self, parent, title=_("Edit Dictionary Entry")): typeChoices = [ DictionaryEntryDialog.TYPE_LABELS[i] for i in DictionaryEntryDialog.TYPE_LABELS_ORDERING ] - self.typeRadioBox = sHelper.addItem(wx.RadioBox(self, label=typeText, choices=typeChoices)) + self.typeRadioBox = sHelper.addItem(wx.RadioBox(self, label=typeText, choices=typeChoices, style=wx.RA_SPECIFY_ROWS)) sHelper.addDialogDismissButtons(wx.OK | wx.CANCEL, separated=True) From 64db330aa82488103816769dc76f303cc89c3054 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 02:27:29 +0000 Subject: [PATCH 2/3] Pre-commit auto-fix --- source/gui/speechDict.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/gui/speechDict.py b/source/gui/speechDict.py index 3dfb495f598..06ae0433ec1 100644 --- a/source/gui/speechDict.py +++ b/source/gui/speechDict.py @@ -65,7 +65,9 @@ def __init__(self, parent, title=_("Edit Dictionary Entry")): typeChoices = [ DictionaryEntryDialog.TYPE_LABELS[i] for i in DictionaryEntryDialog.TYPE_LABELS_ORDERING ] - self.typeRadioBox = sHelper.addItem(wx.RadioBox(self, label=typeText, choices=typeChoices, style=wx.RA_SPECIFY_ROWS)) + self.typeRadioBox = sHelper.addItem( + wx.RadioBox(self, label=typeText, choices=typeChoices, style=wx.RA_SPECIFY_ROWS) + ) sHelper.addDialogDismissButtons(wx.OK | wx.CANCEL, separated=True) From 9bc819bc1030cebfce9a1b59872c3c3717a4c70f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 02:35:47 +0000 Subject: [PATCH 3/3] Pre-commit auto-fix --- source/gui/speechDict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/speechDict.py b/source/gui/speechDict.py index 06ae0433ec1..9c07aee45bd 100644 --- a/source/gui/speechDict.py +++ b/source/gui/speechDict.py @@ -66,7 +66,7 @@ def __init__(self, parent, title=_("Edit Dictionary Entry")): DictionaryEntryDialog.TYPE_LABELS[i] for i in DictionaryEntryDialog.TYPE_LABELS_ORDERING ] self.typeRadioBox = sHelper.addItem( - wx.RadioBox(self, label=typeText, choices=typeChoices, style=wx.RA_SPECIFY_ROWS) + wx.RadioBox(self, label=typeText, choices=typeChoices, style=wx.RA_SPECIFY_ROWS), ) sHelper.addDialogDismissButtons(wx.OK | wx.CANCEL, separated=True)