QScintilla/ShellHistoryDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
31 """ 31 """
32 super(ShellHistoryDialog, self).__init__(shell) 32 super(ShellHistoryDialog, self).__init__(shell)
33 self.setupUi(self) 33 self.setupUi(self)
34 34
35 self.historyList.addItems(history) 35 self.historyList.addItems(history)
36 self.historyList.setCurrentRow(self.historyList.count() - 1, 36 self.historyList.setCurrentRow(
37 QItemSelectionModel.Clear) 37 self.historyList.count() - 1, QItemSelectionModel.Clear)
38 self.historyList.scrollToItem(self.historyList.currentItem()) 38 self.historyList.scrollToItem(self.historyList.currentItem())
39 39
40 self.vm = vm 40 self.vm = vm
41 self.shell = shell 41 self.shell = shell
42 42
113 Private slot to reload the history. 113 Private slot to reload the history.
114 """ 114 """
115 history = self.shell.getHistory(None) 115 history = self.shell.getHistory(None)
116 self.historyList.clear() 116 self.historyList.clear()
117 self.historyList.addItems(history) 117 self.historyList.addItems(history)
118 self.historyList.setCurrentRow(self.historyList.count() - 1, 118 self.historyList.setCurrentRow(
119 QItemSelectionModel.Clear) 119 self.historyList.count() - 1, QItemSelectionModel.Clear)
120 self.historyList.scrollToItem(self.historyList.currentItem()) 120 self.historyList.scrollToItem(self.historyList.currentItem())
121 121
122 def getHistory(self): 122 def getHistory(self):
123 """ 123 """
124 Public method to retrieve the history from the dialog. 124 Public method to retrieve the history from the dialog.

eric ide

mercurial