From c06c6beff4d69865fd7b850537815397cc6e7e9e Mon Sep 17 00:00:00 2001 From: Mohamed Date: Fri, 24 May 2024 18:24:33 -0400 Subject: [PATCH 1/3] Added keyboard shortcuts for account and global settings dialogs --- src/wxUI/dialogs/configuration.py | 54 +++++++++++----------- src/wxUI/dialogs/mastodon/configuration.py | 50 ++++++++++---------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/wxUI/dialogs/configuration.py b/src/wxUI/dialogs/configuration.py index 6b21953b..de311e02 100644 --- a/src/wxUI/dialogs/configuration.py +++ b/src/wxUI/dialogs/configuration.py @@ -12,43 +12,43 @@ class general(wx.Panel, baseDialog.BaseWXDialog): def __init__(self, parent, languages,keymaps): super(general, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) - language = wx.StaticText(self, -1, _(u"Language")) + language = wx.StaticText(self, -1, _(u"&Language")) self.language = wx.ListBox(self, -1, choices=languages) self.language.SetSize(self.language.GetBestSize()) langBox = wx.BoxSizer(wx.HORIZONTAL) langBox.Add(language, 0, wx.ALL, 5) langBox.Add(self.language, 0, wx.ALL, 5) sizer.Add(langBox, 0, wx.ALL, 5) - self.ask_at_exit = wx.CheckBox(self, -1, _(U"ask before exiting {0}").format(application.name,)) + self.ask_at_exit = wx.CheckBox(self, -1, _(U"&Ask before exiting {0}").format(application.name,)) sizer.Add(self.ask_at_exit, 0, wx.ALL, 5) - self.no_streaming = wx.CheckBox(self, -1, _(U"Disable Streaming functions")) + self.no_streaming = wx.CheckBox(self, -1, _(U"&Disable Streaming functions")) sizer.Add(self.no_streaming, 0, wx.ALL, 5) updatePeriodBox = wx.BoxSizer(wx.HORIZONTAL) - updatePeriodBox.Add(wx.StaticText(self, -1, _(u"Buffer update interval, in minutes")), 0, wx.ALL, 5) + updatePeriodBox.Add(wx.StaticText(self, -1, _(u"&Buffer update interval, in minutes")), 0, wx.ALL, 5) self.update_period = wx.SpinCtrl(self, wx.ID_ANY) self.update_period.SetRange(1, 30) self.update_period.SetSize(self.update_period.GetBestSize()) updatePeriodBox.Add(self.update_period, 0, wx.ALL, 5) sizer.Add(updatePeriodBox, 0, wx.ALL, 5) - self.play_ready_sound = wx.CheckBox(self, -1, _(U"Play a sound when {0} launches").format(application.name,)) + self.play_ready_sound = wx.CheckBox(self, -1, _(U"&Play a sound when {0} launches").format(application.name,)) sizer.Add(self.play_ready_sound, 0, wx.ALL, 5) - self.speak_ready_msg = wx.CheckBox(self, -1, _(U"Speak a message when {0} launches").format(application.name,)) + self.speak_ready_msg = wx.CheckBox(self, -1, _(U"&Speak a message when {0} launches").format(application.name,)) sizer.Add(self.speak_ready_msg, 0, wx.ALL, 5) - self.use_invisible_shorcuts = wx.CheckBox(self, -1, _(u"Use invisible interface's keyboard shortcuts while GUI is visible")) + self.use_invisible_shorcuts = wx.CheckBox(self, -1, _(u"&Use invisible interface's keyboard shortcuts while GUI is visible")) sizer.Add(self.use_invisible_shorcuts, 0, wx.ALL, 5) - self.disable_sapi5 = wx.CheckBox(self, -1, _(u"Activate Sapi5 when any other screen reader is not being run")) + self.disable_sapi5 = wx.CheckBox(self, -1, _(u"&Activate Sapi5 when any other screen reader is not being run")) sizer.Add(self.disable_sapi5, 0, wx.ALL, 5) - self.hide_gui = wx.CheckBox(self, -1, _(u"Hide GUI on launch")) + self.hide_gui = wx.CheckBox(self, -1, _(u"&Hide GUI on launch")) sizer.Add(self.hide_gui, 0, wx.ALL, 5) - self.read_long_posts_in_gui = wx.CheckBox(self, wx.ID_ANY, _("Read long posts in GUI")) + self.read_long_posts_in_gui = wx.CheckBox(self, wx.ID_ANY, _("&Read long posts in GUI")) sizer.Add(self.read_long_posts_in_gui, 0, wx.ALL, 5) kmbox = wx.BoxSizer(wx.VERTICAL) - km_label = wx.StaticText(self, -1, _(u"Keymap")) + km_label = wx.StaticText(self, -1, _(u"&Keymap")) self.km = wx.ComboBox(self, -1, choices=keymaps, style=wx.CB_READONLY) self.km.SetSize(self.km.GetBestSize()) kmbox.Add(km_label, 0, wx.ALL, 5) kmbox.Add(self.km, 0, wx.ALL, 5) - self.check_for_updates = wx.CheckBox(self, -1, _(U"Check for updates when {0} launches").format(application.name,)) + self.check_for_updates = wx.CheckBox(self, -1, _(U"Check for &updates when {0} launches").format(application.name,)) sizer.Add(self.check_for_updates, 0, wx.ALL, 5) sizer.Add(kmbox, 0, wx.ALL, 5) self.SetSizer(sizer) @@ -58,32 +58,32 @@ class proxy(wx.Panel, baseDialog.BaseWXDialog): def __init__(self, parent, proxyTypes): super(proxy, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) - type=wx.StaticText(self, wx.ID_ANY, _(u"Proxy type: ")) + type=wx.StaticText(self, wx.ID_ANY, _(u"Proxy &type: ")) self.type=wx.ComboBox(self, -1, choices=proxyTypes, style=wx.CB_READONLY) self.type.SetSize(self.type.GetBestSize()) typeBox = wx.BoxSizer(wx.HORIZONTAL) typeBox.Add(type, 0, wx.ALL, 5) typeBox.Add(self.type, 0, wx.ALL, 5) sizer.Add(typeBox, 0, wx.ALL, 5) - lbl = wx.StaticText(self, wx.ID_ANY, _(u"Proxy server: ")) + lbl = wx.StaticText(self, wx.ID_ANY, _(u"Proxy &server: ")) self.server = wx.TextCtrl(self, -1) serverBox = wx.BoxSizer(wx.HORIZONTAL) serverBox.Add(lbl, 0, wx.ALL, 5) serverBox.Add(self.server, 0, wx.ALL, 5) sizer.Add(serverBox, 0, wx.ALL, 5) - lbl = wx.StaticText(self, wx.ID_ANY, _(u"Port: ")) + lbl = wx.StaticText(self, wx.ID_ANY, _(u"&Port: ")) self.port = wx.SpinCtrl(self, wx.ID_ANY, min=1, max=65535) portBox = wx.BoxSizer(wx.HORIZONTAL) portBox.Add(lbl, 0, wx.ALL, 5) portBox.Add(self.port, 0, wx.ALL, 5) sizer.Add(portBox, 0, wx.ALL, 5) - lbl = wx.StaticText(self, wx.ID_ANY, _(u"User: ")) + lbl = wx.StaticText(self, wx.ID_ANY, _(u"&User: ")) self.user = wx.TextCtrl(self, wx.ID_ANY) userBox = wx.BoxSizer(wx.HORIZONTAL) userBox.Add(lbl, 0, wx.ALL, 5) userBox.Add(self.user, 0, wx.ALL, 5) sizer.Add(userBox, 0, wx.ALL, 5) - lbl = wx.StaticText(self, wx.ID_ANY, _(u"Password: ")) + lbl = wx.StaticText(self, wx.ID_ANY, _(u"&Password: ")) self.password = wx.TextCtrl(self, wx.ID_ANY, style=wx.TE_PASSWORD) passwordBox = wx.BoxSizer(wx.HORIZONTAL) passwordBox.Add(lbl, 0, wx.ALL, 5) @@ -95,9 +95,9 @@ class reporting(wx.Panel, baseDialog.BaseWXDialog): def __init__(self, parent): super(reporting, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) - self.speech_reporting = wx.CheckBox(self, wx.ID_ANY, _(U"Enable automatic speech feedback")) + self.speech_reporting = wx.CheckBox(self, wx.ID_ANY, _(U"Enable automatic &speech feedback")) sizer.Add(self.speech_reporting, 0, wx.ALL, 5) - self.braille_reporting = wx.CheckBox(self, wx.ID_ANY, _(U"Enable automatic Braille feedback")) + self.braille_reporting = wx.CheckBox(self, wx.ID_ANY, _(U"Enable automatic &Braille feedback")) sizer.Add(self.braille_reporting, 0, wx.ALL, 5) self.SetSizer(sizer) @@ -108,9 +108,9 @@ class other_buffers(wx.Panel): self.buffers = widgets.list(self, _(u"Buffer"), _(u"Name"), _(u"Status"), style=wx.LC_SINGLE_SEL|wx.LC_REPORT) sizer.Add(self.buffers.list, 0, wx.ALL, 5) btnSizer = wx.BoxSizer(wx.HORIZONTAL) - self.toggle_state = wx.Button(self, -1, _(u"Show/hide")) - self.up = wx.Button(self, -1, _(u"Move up")) - self.down = wx.Button(self, -1, _(u"Move down")) + self.toggle_state = wx.Button(self, -1, _(u"&Show/hide")) + self.up = wx.Button(self, -1, _(u"Move &up")) + self.down = wx.Button(self, -1, _(u"Move &down")) btnSizer.Add(self.toggle_state, 0, wx.ALL, 5) btnSizer.Add(self.up, 0, wx.ALL, 5) btnSizer.Add(self.down, 0, wx.ALL, 5) @@ -202,19 +202,19 @@ class TranslatorPanel(wx.Panel, baseDialog.BaseWXDialog): super(TranslatorPanel, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) - lbl_libre_url = wx.StaticText(self, wx.ID_ANY, _(u"LibreTranslate API URL: ")) + lbl_libre_url = wx.StaticText(self, wx.ID_ANY, _(u"&LibreTranslate API URL: ")) self.libre_api_url = wx.TextCtrl(self, wx.ID_ANY) libreUrlBox = wx.BoxSizer(wx.HORIZONTAL) libreUrlBox.Add(lbl_libre_url, 0, wx.ALL, 5) libreUrlBox.Add(self.libre_api_url, 1, wx.ALL | wx.EXPAND, 5) sizer.Add(libreUrlBox, 0, wx.ALL | wx.EXPAND, 5) - lbl_libre_api_key = wx.StaticText(self, wx.ID_ANY, _(u"LibreTranslate API Key (optional): ")) + lbl_libre_api_key = wx.StaticText(self, wx.ID_ANY, _(u"LibreTranslate API &Key (optional): ")) self.libre_api_key = wx.TextCtrl(self, wx.ID_ANY) libreApiKeyBox = wx.BoxSizer(wx.HORIZONTAL) libreApiKeyBox.Add(lbl_libre_api_key, 0, wx.ALL, 5) libreApiKeyBox.Add(self.libre_api_key, 1, wx.ALL | wx.EXPAND, 5) sizer.Add(libreApiKeyBox, 0, wx.ALL | wx.EXPAND, 5) - lbl_deepL_api_key = wx.StaticText(self, wx.ID_ANY, _(u"DeepL API Key: ")) + lbl_deepL_api_key = wx.StaticText(self, wx.ID_ANY, _(u"&DeepL API Key: ")) self.deepL_api_key = wx.TextCtrl(self, wx.ID_ANY) deepLApiKeyBox = wx.BoxSizer(wx.HORIZONTAL) deepLApiKeyBox.Add(lbl_deepL_api_key, 0, wx.ALL, 5) @@ -248,9 +248,9 @@ class configurationDialog(baseDialog.BaseWXDialog): def realize(self): self.sizer.Add(self.notebook, 0, wx.ALL, 5) ok_cancel_box = wx.BoxSizer(wx.HORIZONTAL) - ok = wx.Button(self.panel, wx.ID_OK, _(u"Save")) + ok = wx.Button(self.panel, wx.ID_OK, _(u"&Save")) ok.SetDefault() - cancel = wx.Button(self.panel, wx.ID_CANCEL, _(u"Close")) + cancel = wx.Button(self.panel, wx.ID_CANCEL, _(u"&Close")) self.SetEscapeId(cancel.GetId()) ok_cancel_box.Add(ok, 0, wx.ALL, 5) ok_cancel_box.Add(cancel, 0, wx.ALL, 5) diff --git a/src/wxUI/dialogs/mastodon/configuration.py b/src/wxUI/dialogs/mastodon/configuration.py index 187c74bc..86e44972 100644 --- a/src/wxUI/dialogs/mastodon/configuration.py +++ b/src/wxUI/dialogs/mastodon/configuration.py @@ -12,49 +12,49 @@ class generalAccount(wx.Panel, baseDialog.BaseWXDialog): super(generalAccount, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) userAutocompletionBox = wx.StaticBox(self, label=_("User autocompletion settings")) - self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("Scan account and add followers and following users to the user autocompletion database")) - self.userAutocompletionManage = wx.Button(self, wx.ID_ANY, _("Manage autocompletion database")) + self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("&Scan account and add followers and following users to the user autocompletion database")) + self.userAutocompletionManage = wx.Button(self, wx.ID_ANY, _("&Manage autocompletion database")) autocompletionSizer = wx.StaticBoxSizer(userAutocompletionBox, wx.HORIZONTAL) autocompletionSizer.Add(self.userAutocompletionScan, 0, wx.ALL, 5) autocompletionSizer.Add(self.userAutocompletionManage, 0, wx.ALL, 5) sizer.Add(autocompletionSizer, 0, wx.ALL, 5) - self.disable_streaming = wx.CheckBox(self, wx.ID_ANY, _("Disable Streaming API endpoints")) + self.disable_streaming = wx.CheckBox(self, wx.ID_ANY, _("&Disable Streaming API endpoints")) sizer.Add(self.disable_streaming, 0, wx.ALL, 5) - self.relative_time = wx.CheckBox(self, wx.ID_ANY, _("Relative timestamps")) + self.relative_time = wx.CheckBox(self, wx.ID_ANY, _("&Relative timestamps")) sizer.Add(self.relative_time, 0, wx.ALL, 5) - self.read_preferences_from_instance = wx.CheckBox(self, wx.ID_ANY, _("Read preferences from instance (default visibility when publishing and displaying sensitive content)")) + self.read_preferences_from_instance = wx.CheckBox(self, wx.ID_ANY, _("R&ead preferences from instance (default visibility when publishing and displaying sensitive content)")) sizer.Add(self.read_preferences_from_instance, 0, wx.ALL, 5) itemsPerCallBox = wx.BoxSizer(wx.HORIZONTAL) - itemsPerCallBox.Add(wx.StaticText(self, -1, _("Items on each API call")), 0, wx.ALL, 5) + itemsPerCallBox.Add(wx.StaticText(self, -1, _("&Items on each API call")), 0, wx.ALL, 5) self.itemsPerApiCall = wx.SpinCtrl(self, wx.ID_ANY) self.itemsPerApiCall.SetRange(0, 40) self.itemsPerApiCall.SetSize(self.itemsPerApiCall.GetBestSize()) itemsPerCallBox.Add(self.itemsPerApiCall, 0, wx.ALL, 5) sizer.Add(itemsPerCallBox, 0, wx.ALL, 5) - self.reverse_timelines = wx.CheckBox(self, wx.ID_ANY, _("Inverted buffers: The newest items will be shown at the beginning while the oldest at the end")) + self.reverse_timelines = wx.CheckBox(self, wx.ID_ANY, _("I&nverted buffers: The newest items will be shown at the beginning while the oldest at the end")) sizer.Add(self.reverse_timelines, 0, wx.ALL, 5) - self.ask_before_boost = wx.CheckBox(self, wx.ID_ANY, _("Ask confirmation before boosting a post")) + self.ask_before_boost = wx.CheckBox(self, wx.ID_ANY, _("&Ask confirmation before boosting a post")) sizer.Add(self.ask_before_boost, 0, wx.ALL, 5) - self.show_screen_names = wx.CheckBox(self, wx.ID_ANY, _("Show screen names instead of full names")) + self.show_screen_names = wx.CheckBox(self, wx.ID_ANY, _("S&how screen names instead of full names")) sizer.Add(self.show_screen_names, 0, wx.ALL, 5) - self.hide_emojis = wx.CheckBox(self, wx.ID_ANY, _("hide emojis in usernames")) + self.hide_emojis = wx.CheckBox(self, wx.ID_ANY, _("H&ide emojis in usernames")) sizer.Add(self.hide_emojis, 0, wx.ALL, 5) - PersistSizeLabel = wx.StaticText(self, -1, _("Number of items per buffer to cache in database (0 to disable caching, blank for unlimited)")) + PersistSizeLabel = wx.StaticText(self, -1, _("&Number of items per buffer to cache in database (0 to disable caching, blank for unlimited)")) self.persist_size = wx.TextCtrl(self, -1) sizer.Add(PersistSizeLabel, 0, wx.ALL, 5) sizer.Add(self.persist_size, 0, wx.ALL, 5) - self.load_cache_in_memory = wx.CheckBox(self, wx.NewId(), _("Load cache for items in memory (much faster in big datasets but requires more RAM)")) + self.load_cache_in_memory = wx.CheckBox(self, wx.NewId(), _("&Load cache for items in memory (much faster in big datasets but requires more RAM)")) self.SetSizer(sizer) class templates(wx.Panel, baseDialog.BaseWXDialog): def __init__(self, parent, post_template, conversation_template, person_template): super(templates, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) - self.post = wx.Button(self, wx.ID_ANY, _("Edit template for posts. Current template: {}").format(post_template)) + self.post = wx.Button(self, wx.ID_ANY, _("Edit template for &posts. Current template: {}").format(post_template)) sizer.Add(self.post, 0, wx.ALL, 5) - self.conversation = wx.Button(self, wx.ID_ANY, _("Edit template for conversations. Current template: {}").format(conversation_template)) + self.conversation = wx.Button(self, wx.ID_ANY, _("Edit template for &conversations. Current template: {}").format(conversation_template)) sizer.Add(self.conversation, 0, wx.ALL, 5) - self.person = wx.Button(self, wx.ID_ANY, _("Edit template for persons. Current template: {}").format(person_template)) + self.person = wx.Button(self, wx.ID_ANY, _("Edit template for &persons. Current template: {}").format(person_template)) sizer.Add(self.person, 0, wx.ALL, 5) self.SetSizer(sizer) @@ -62,7 +62,7 @@ class sound(wx.Panel): def __init__(self, parent, input_devices, output_devices, soundpacks): wx.Panel.__init__(self, parent) sizer = wx.BoxSizer(wx.VERTICAL) - volume = wx.StaticText(self, -1, _(u"Volume")) + volume = wx.StaticText(self, -1, _(u"&Volume")) self.volumeCtrl = wx.Slider(self) # Connect a key handler here to handle volume slider being inverted when moving with up and down arrows. # see https://github.com/manuelcortez/TWBlue/issues/261 @@ -73,16 +73,16 @@ class sound(wx.Panel): volumeBox.Add(volume, 0, wx.ALL, 5) volumeBox.Add(self.volumeCtrl, 0, wx.ALL, 5) sizer.Add(volumeBox, 0, wx.ALL, 5) - self.session_mute = wx.CheckBox(self, -1, _(u"Session mute")) + self.session_mute = wx.CheckBox(self, -1, _(u"&Session mute")) sizer.Add(self.session_mute, 0, wx.ALL, 5) - output_label = wx.StaticText(self, -1, _(u"Output device")) + output_label = wx.StaticText(self, -1, _(u"&Output device")) self.output = wx.ComboBox(self, -1, choices=output_devices, style=wx.CB_READONLY) self.output.SetSize(self.output.GetBestSize()) outputBox = wx.BoxSizer(wx.HORIZONTAL) outputBox.Add(output_label, 0, wx.ALL, 5) outputBox.Add(self.output, 0, wx.ALL, 5) sizer.Add(outputBox, 0, wx.ALL, 5) - input_label = wx.StaticText(self, -1, _(u"Input device")) + input_label = wx.StaticText(self, -1, _(u"&Input device")) self.input = wx.ComboBox(self, -1, choices=input_devices, style=wx.CB_READONLY) self.input.SetSize(self.input.GetBestSize()) inputBox = wx.BoxSizer(wx.HORIZONTAL) @@ -90,15 +90,15 @@ class sound(wx.Panel): inputBox.Add(self.input, 0, wx.ALL, 5) sizer.Add(inputBox, 0, wx.ALL, 5) soundBox = wx.BoxSizer(wx.VERTICAL) - soundpack_label = wx.StaticText(self, -1, _(u"Sound pack")) + soundpack_label = wx.StaticText(self, -1, _(u"Sound &pack")) self.soundpack = wx.ComboBox(self, -1, choices=soundpacks, style=wx.CB_READONLY) self.soundpack.SetSize(self.soundpack.GetBestSize()) soundBox.Add(soundpack_label, 0, wx.ALL, 5) soundBox.Add(self.soundpack, 0, wx.ALL, 5) sizer.Add(soundBox, 0, wx.ALL, 5) - self.indicate_audio = wx.CheckBox(self, -1, _("Indicate audio or video in posts with sound")) + self.indicate_audio = wx.CheckBox(self, -1, _("Indicate &audio or video in posts with sound")) sizer.Add(self.indicate_audio, 0, wx.ALL, 5) - self.indicate_img = wx.CheckBox(self, -1, _("Indicate posts containing images with sound")) + self.indicate_img = wx.CheckBox(self, -1, _("Indicate posts containing i&mages with sound")) sizer.Add(self.indicate_img, 0, wx.ALL, 5) self.SetSizer(sizer) @@ -121,7 +121,7 @@ class extrasPanel(wx.Panel): def __init__(self, parent, ocr_languages=[], translation_languages=[]): super(extrasPanel, self).__init__(parent) mainSizer = wx.BoxSizer(wx.VERTICAL) - OCRBox = wx.StaticBox(self, label=_(u"Language for OCR")) + OCRBox = wx.StaticBox(self, label=_(u"&Language for OCR")) self.ocr_lang = wx.ListBox(self, -1, choices=ocr_languages) self.ocr_lang.SetSize(self.ocr_lang.GetBestSize()) ocrLanguageSizer = wx.StaticBoxSizer(OCRBox, wx.HORIZONTAL) @@ -167,9 +167,9 @@ class configurationDialog(baseDialog.BaseWXDialog): def realize(self): self.sizer.Add(self.notebook, 0, wx.ALL, 5) ok_cancel_box = wx.BoxSizer(wx.HORIZONTAL) - ok = wx.Button(self.panel, wx.ID_OK, _(u"Save")) + ok = wx.Button(self.panel, wx.ID_OK, _(u"&Save")) ok.SetDefault() - cancel = wx.Button(self.panel, wx.ID_CANCEL, _(u"Close")) + cancel = wx.Button(self.panel, wx.ID_CANCEL, _(u"&Close")) self.SetEscapeId(cancel.GetId()) ok_cancel_box.Add(ok, 0, wx.ALL, 5) ok_cancel_box.Add(cancel, 0, wx.ALL, 5) From 33ccb0a8a95f6af9cb317e0841621ba88aee2106 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Fri, 24 May 2024 18:31:11 -0400 Subject: [PATCH 2/3] Improved shortcut for proxy server --- src/wxUI/dialogs/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wxUI/dialogs/configuration.py b/src/wxUI/dialogs/configuration.py index de311e02..ab38d77c 100644 --- a/src/wxUI/dialogs/configuration.py +++ b/src/wxUI/dialogs/configuration.py @@ -65,7 +65,7 @@ class proxy(wx.Panel, baseDialog.BaseWXDialog): typeBox.Add(type, 0, wx.ALL, 5) typeBox.Add(self.type, 0, wx.ALL, 5) sizer.Add(typeBox, 0, wx.ALL, 5) - lbl = wx.StaticText(self, wx.ID_ANY, _(u"Proxy &server: ")) + lbl = wx.StaticText(self, wx.ID_ANY, _(u"Proxy s&erver: ")) self.server = wx.TextCtrl(self, -1) serverBox = wx.BoxSizer(wx.HORIZONTAL) serverBox.Add(lbl, 0, wx.ALL, 5) From 9d66b23c8e7f08dfd40946dc0e54d62b43d6554f Mon Sep 17 00:00:00 2001 From: Mohamed Date: Fri, 24 May 2024 18:35:35 -0400 Subject: [PATCH 3/3] Impoved persons template shortcut --- src/wxUI/dialogs/mastodon/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wxUI/dialogs/mastodon/configuration.py b/src/wxUI/dialogs/mastodon/configuration.py index 86e44972..da411455 100644 --- a/src/wxUI/dialogs/mastodon/configuration.py +++ b/src/wxUI/dialogs/mastodon/configuration.py @@ -54,7 +54,7 @@ class templates(wx.Panel, baseDialog.BaseWXDialog): sizer.Add(self.post, 0, wx.ALL, 5) self.conversation = wx.Button(self, wx.ID_ANY, _("Edit template for &conversations. Current template: {}").format(conversation_template)) sizer.Add(self.conversation, 0, wx.ALL, 5) - self.person = wx.Button(self, wx.ID_ANY, _("Edit template for &persons. Current template: {}").format(person_template)) + self.person = wx.Button(self, wx.ID_ANY, _("Edit template for p&ersons. Current template: {}").format(person_template)) sizer.Add(self.person, 0, wx.ALL, 5) self.SetSizer(sizer)