--- a/QScintilla/ShellHistoryDialog.py Fri Oct 18 23:00:41 2013 +0200 +++ b/QScintilla/ShellHistoryDialog.py Fri Nov 01 15:48:48 2013 +0100 @@ -33,8 +33,8 @@ self.setupUi(self) self.historyList.addItems(history) - self.historyList.setCurrentRow(self.historyList.count() - 1, - QItemSelectionModel.Clear) + self.historyList.setCurrentRow( + self.historyList.count() - 1, QItemSelectionModel.Clear) self.historyList.scrollToItem(self.historyList.currentItem()) self.vm = vm @@ -115,8 +115,8 @@ history = self.shell.getHistory(None) self.historyList.clear() self.historyList.addItems(history) - self.historyList.setCurrentRow(self.historyList.count() - 1, - QItemSelectionModel.Clear) + self.historyList.setCurrentRow( + self.historyList.count() - 1, QItemSelectionModel.Clear) self.historyList.scrollToItem(self.historyList.currentItem()) def getHistory(self):