QScintilla/GotoDialog.py

branch
5_1_x
changeset 959
3b5ad7224945
parent 791
9ec2ac20e54e
child 1510
e75ecf2bd9dd
--- a/QScintilla/GotoDialog.py	Sat Mar 26 12:52:15 2011 +0100
+++ b/QScintilla/GotoDialog.py	Sun Mar 27 12:23:30 2011 +0200
@@ -15,11 +15,12 @@
     """
     Class implementing the Goto dialog.
     """
-    def __init__(self, maximum, parent, name = None, modal = False):
+    def __init__(self, maximum, curLine, parent, name = None, modal = False):
         """
         Constructor
         
-        @param maximum the maximum allowed for the spinbox (int)
+        @param maximum maximum allowed for the spinbox (integer)
+        @param curLine current line number (integer)
         @param parent parent widget of this dialog (QWidget)
         @param name name of this dialog (string)
         @param modal flag indicating a modal dialog (boolean)
@@ -31,6 +32,7 @@
         self.setModal(modal)
         
         self.linenumberSpinBox.setMaximum(maximum)
+        self.linenumberSpinBox.setValue(curLine)
         self.linenumberSpinBox.selectAll()
         
     def getLinenumber(self):

eric ide

mercurial