[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-developer
Subject: [Qgis-developer] Command line history for Python console
From: "volkan kepoglu" <vkepoglu () gmail ! com>
Date: 2008-10-24 14:19:35
Message-ID: 8b5938320810240719o7d349a21u1b95c41d13490eac () mail ! gmail ! com
[Download RAW message or body]
Dear Martin,
I can suggest python codes for this issue. if QtWidget is QLineEdit in
python console, you can use this code:
txtEnter = QLineEdit
def keyPressEvent(self, event):
if event.key() == QtCore.Qt.Key_Up:
self.txtEnter.undo()
self.txtEnter.deselect()
elif event.key() == QtCore.Qt.Key_Down:
self.txtEnter.redo()
self.txtEnter.deselect()
I hope it works.
--
Regards,
Volkan Kepoglu
PhD Candidate
GGIT Department in METU,
Ankara, Turkey.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic