Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance WXPython4 compatibility in Default Profile Reversion dialog #52

Merged
merged 3 commits into from
Sep 2, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions addon/appModules/lambda/lambdaProfileSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import addonHandler
import sharedMessages as shMsg
import gui
from gui import guiHelper
from gui.settingsDialogs import SettingsDialog
import wx
try :
Expand Down Expand Up @@ -131,30 +132,26 @@ class QuickProfileWizardDialog(SettingsDialog):
title = _("Revert LAMBDA Profile Wizard")

def makeSettings(self, settingsSizer):
helper=guiHelper.BoxSizerHelper(self, sizer=settingsSizer)
# Translators: This is the static text of the Quick Profile Wizard dialog.
msgIntro=_("Choose which options you want to reset to the default value for the Lambdas profile")
self.introStxt=wx.StaticText(self,-1,label=msgIntro)
settingsSizer.Add(self.introStxt,flag=wx.BOTTOM)
self.introStxt=helper.addItem(wx.StaticText(self,-1,label=msgIntro))
# Translators: This is the label for a checkbox in the
# Quick Profile Wizard dialog.
self.defaultTranslationTableCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Keep the LAMBDA braille table for the current language (%s)") % TABLE_NAME)
self.defaultTranslationTableCheckBox=helper.addItem(wx.CheckBox(self,wx.ID_ANY,label=_("Keep the LAMBDA braille table for the current language (%s)") % TABLE_NAME))
self.defaultTranslationTableCheckBox.SetValue(True)
settingsSizer.Add(self.defaultTranslationTableCheckBox,border=10,flag=wx.BOTTOM)
# Translators: This is the label for a checkbox in the
# Quick Profile Wizard dialog.
self.brailleTetherToFocusCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Set the braille cursor to tether the focus"))
self.brailleTetherToFocusCheckBox=helper.addItem(wx.CheckBox(self,wx.ID_ANY,label=_("Set the braille cursor to tether the focus")))
self.brailleTetherToFocusCheckBox.SetValue(True)
settingsSizer.Add(self.brailleTetherToFocusCheckBox,border=10,flag=wx.BOTTOM)
# Translators: This is the label for a checkbox in the
# Quick Profile Wizard dialog.
self.disableReadByParagraphCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Disable the Braille reading by paragraph"))
self.disableReadByParagraphCheckBox=helper.addItem(wx.CheckBox(self,wx.ID_ANY,label=_("Disable the Braille reading by paragraph")))
self.disableReadByParagraphCheckBox.SetValue(True)
settingsSizer.Add(self.disableReadByParagraphCheckBox,border=10,flag=wx.BOTTOM)
# Translators: This is the label for a checkbox in the
# Quick Profile Wizard dialog.
self.disableBrailleWordWrapCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Disable word wrappping of the braille line"))
self.disableBrailleWordWrapCheckBox=helper.addItem(wx.CheckBox(self,wx.ID_ANY,label=_("Disable word wrappping of the braille line")))
self.disableBrailleWordWrapCheckBox.SetValue(True)
settingsSizer.Add(self.disableBrailleWordWrapCheckBox,border=10,flag=wx.BOTTOM)

def postInit(self):
self.defaultTranslationTableCheckBox.SetFocus()
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description" : _("This addon provides access to the Lambda math editor with both braille and speech support."),
# version
"addon_version" : "1.2.1a",
"addon_version" : "1.2.2-dev",
# Author(s)
"addon_author" : "Alberto Zanella, Ivan Novegil",
# URL for the add-on documentation support
Expand Down