QScintilla/GotoDialog.py

changeset 958
9f712690525e
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
--- a/QScintilla/GotoDialog.py	Sat Mar 26 12:51:13 2011 +0100
+++ b/QScintilla/GotoDialog.py	Sun Mar 27 12:22:31 2011 +0200
@@ -16,11 +16,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)
@@ -32,6 +33,7 @@
         self.setModal(modal)
         
         self.linenumberSpinBox.setMaximum(maximum)
+        self.linenumberSpinBox.setValue(curLine)
         self.linenumberSpinBox.selectAll()
         
     def getLinenumber(self):

eric ide

mercurial