1382 Private method to check, if the cursor is on the last line. |
1382 Private method to check, if the cursor is on the last line. |
1383 |
1383 |
1384 @return flag indicating that the cursor is on the last line |
1384 @return flag indicating that the cursor is on the last line |
1385 @rtype bool |
1385 @rtype bool |
1386 """ |
1386 """ |
1387 cline, ccol = self.getCursorPosition() |
1387 cline, _ccol = self.getCursorPosition() |
1388 return cline == self.lines() - 1 |
1388 return cline == self.lines() - 1 |
1389 |
1389 |
1390 def keyPressEvent(self, ev): |
1390 def keyPressEvent(self, ev): |
1391 """ |
1391 """ |
1392 Protected method to handle the user input a key at a time. |
1392 Protected method to handle the user input a key at a time. |