[Qgis-developer] Re: Command line history for Python console

Martin Dobias wonder.sk at gmail.com
Sun Oct 26 16:01:44 EDT 2008


Hi,

Juergen implemented command history just about a day ago, give it a try!

Martin

On Fri, Oct 24, 2008 at 4:19 PM, volkan kepoglu <vkepoglu at gmail.com> wrote:
> 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.
>


More information about the Qgis-developer mailing list