[pyzo] 53/68: Fix line number choser (with PyQt5 it crashed Pyzo)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 28 09:47:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository pyzo.

commit cd0e36023ac849d022c9f65f7f7b52fc049d1f6c
Author: Almar Klein <almar.klein at gmail.com>
Date:   Sun Sep 25 00:59:26 2016 +0200

    Fix line number choser (with PyQt5 it crashed Pyzo)
---
 pyzo/codeeditor/extensions/appearance.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pyzo/codeeditor/extensions/appearance.py b/pyzo/codeeditor/extensions/appearance.py
index 0cdbfd8..b012e79 100644
--- a/pyzo/codeeditor/extensions/appearance.py
+++ b/pyzo/codeeditor/extensions/appearance.py
@@ -845,14 +845,13 @@ class LineNumbers(object):
     class LineNumberChoser(QtWidgets.QSpinBox):
         def __init__(self, parent):
             QtWidgets.QSpinBox.__init__(self, parent)
-            
             self._editor = parent
             
             ss = "QSpinBox { border: 2px solid #789; border-radius: 3px; padding: 4px; }"
             self.setStyleSheet(ss)
             
-            self.setPrefix(translate('appearance', 'Go to line: '))
-            self.setAccelerated (True)
+            self.setPrefix('Go to line: ')
+            self.setAccelerated(True)
             self.setButtonSymbols(self.NoButtons)
             self.setCorrectionMode(self.CorrectToNearestValue)
             

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyzo.git



More information about the debian-science-commits mailing list