Skip to content

Instantly share code, notes, and snippets.

@slarosa
Created August 30, 2012 12:27
Show Gist options
  • Save slarosa/3527525 to your computer and use it in GitHub Desktop.
Save slarosa/3527525 to your computer and use it in GitHub Desktop.
AutoCompletion Python Console
import sys
from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv)
lineEdit = QtGui.QLineEdit()
completer = QtGui.QCompleter(['QgsVectorLayer', 'QgsRasterLayer'])
lineEdit.setCompleter(completer)
lineEdit.show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment