eric6/QScintilla/MiniEditor.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8298
83ddb87b3bc1
equal deleted inserted replaced
8274:197414ba11cc 8400:b3eefd7e58d1
3058 fromLine, fromIndex, toLine, toIndex = ( 3058 fromLine, fromIndex, toLine, toIndex = (
3059 self.__textEdit.getSelection() 3059 self.__textEdit.getSelection()
3060 ) 3060 )
3061 if toIndex == 0: 3061 if toIndex == 0:
3062 toLine -= 1 3062 toLine -= 1
3063 # Qscintilla seems to print one line more than told 3063 # QScintilla seems to print one line more than told
3064 res = printer.printRange(self.__textEdit, fromLine, toLine - 1) 3064 res = printer.printRange(self.__textEdit, fromLine, toLine - 1)
3065 else: 3065 else:
3066 res = printer.printRange(self.__textEdit) 3066 res = printer.printRange(self.__textEdit)
3067 if res: 3067 if res:
3068 sb.showMessage(self.tr('Printing completed'), 2000) 3068 sb.showMessage(self.tr('Printing completed'), 2000)

eric ide

mercurial