From 2ef9cc0df9edcf4d9007da85644fcab745f4ec47 Mon Sep 17 00:00:00 2001 From: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com> Date: Tue, 16 Jun 2026 12:30:44 +1000 Subject: [PATCH] Set the major dimension of the type radiobox in the add dictionary entry dialog to rows --- source/gui/speechDict.py | 5 ++++- user_docs/en/changes.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/gui/speechDict.py b/source/gui/speechDict.py index 56b8ed9d781..37992cb9fa5 100644 --- a/source/gui/speechDict.py +++ b/source/gui/speechDict.py @@ -65,13 +65,16 @@ 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) mainSizer.Add(sHelper.sizer, border=guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL) mainSizer.Fit(self) self.SetSizer(mainSizer) + self.CentreOnParent() self.setType(EntryType.ANYWHERE) self.patternTextCtrl.SetFocus() self.Bind(wx.EVT_BUTTON, self.onOk, id=wx.ID_OK) diff --git a/user_docs/en/changes.md b/user_docs/en/changes.md index da9ff40281d..450ca2a3012 100644 --- a/user_docs/en/changes.md +++ b/user_docs/en/changes.md @@ -79,6 +79,7 @@ This is more noticeable for Windows releases which are enablement packages on to * Added an advanced setting to opt regular expression speech dictionary entries into a more modern [`regex`](https://pypi.org/project/regex/) engine. This provides Unicode-aware `\w` and `\b` and additional regex features. The setting is disabled by default. (#20013, @LeonarddeR) +* The "Type" radio buttons in the "Add Dictionary Entry" dialog are now arranged vertically rather than horizontally. (#19657) ### Bug Fixes