commit/placeMarkers: norrumar: Make gui compatible with wxPy4

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 27 Apr 2017 18:14:14 -0000

1 new commit in placeMarkers:

https://bitbucket.org/nvdaaddonteam/placemarkers/commits/7cb5cec28dc8/
Changeset:   7cb5cec28dc8
Branch:      wxPy4
User:        norrumar
Date:        2017-04-27 17:41:50+00:00
Summary:     Make gui compatible with wxPy4

* Use RuntimeError exception instead of wx.PyDeadObjectError
* Use wx.Center instead of CenterOnScreen

Affected #:  2 files

diff --git a/addon/globalPlugins/placeMarkers/__init__.py 
b/addon/globalPlugins/placeMarkers/__init__.py
index 9fc6f1d..e3250ba 100644
--- a/addon/globalPlugins/placeMarkers/__init__.py
+++ b/addon/globalPlugins/placeMarkers/__init__.py
@@ -217,7 +217,7 @@ class SpecificSearchDialog(wx.Dialog):
                        self.addCheckBox.Disable()
                        self.searchRadioBox.Disable()
                        self.caseSensitiveCheckBox.Disable()
-               self.Center(wx.BOTH | wx.CENTER_ON_SCREEN)
+               self.Center(wx.BOTH | wx.Center)
 
        def onSearchEditTextChange(self, evt):
                if self.searchTextEdit.Value:
@@ -329,7 +329,7 @@ class CopyDialog(wx.Dialog):
                mainSizer.Add(sHelper.sizer, 
border=gui.guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
                self.Sizer = mainSizer
                mainSizer.Fit(self)
-               self.Center(wx.BOTH | wx.CENTER_ON_SCREEN)
+               self.Center(wx.BOTH | wx.Center)
 
        def onCopy(self, evt):
                if not self.copyDirectoryEdit.Value:
@@ -400,7 +400,7 @@ class RestoreDialog(wx.Dialog):
                mainSizer.Add(sHelper.sizer, 
border=gui.guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
                self.Sizer = mainSizer
                mainSizer.Fit(self)
-               self.Center(wx.BOTH | wx.CENTER_ON_SCREEN)
+               self.Center(wx.BOTH | wx.Center)
 
        def onRestore(self, evt):
                if not self.restoreDirectoryEdit.Value:
@@ -468,7 +468,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        def terminate(self):
                try:
                        self.menu.RemoveItem(self.mainItem)
-               except wx.PyDeadObjectError:
+               except RuntimeError:
                        pass
 
        def onSpecificSearch(self, evt):

diff --git a/buildVars.py b/buildVars.py
index 7ff28c5..d48595b 100755
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("Add-on for setting place markers on specific 
virtual documents"),
        # version
-       "addon_version" : "7.2",
+       "addon_version" : "7.2wxPy4",
        # Author(s)
        "addon_author" : u"Noelia <nrm1977@xxxxxxxxx>, Chris 
<llajta2012@xxxxxxxxx>",
        # URL for the add-on documentation support

Repository URL: https://bitbucket.org/nvdaaddonteam/placemarkers/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/placeMarkers: norrumar: Make gui compatible with wxPy4 - commits-noreply