import gtk
import gobject

ls = gtk.ListStore(gobject.TYPE_STRING)
ls.append(['A single entry with two lines (separated with \\n)\nline2'])

e = gtk.Entry()
w = gtk.Window()

ec = gtk.EntryCompletion()
ec.set_model(ls)
ec.set_text_column(0)

e.set_completion(ec)

w.add(e)
w.show_all()
w.connect('delete_event', gtk.main_quit)

gtk.main()
