I want to pack a Gtk.Entry
(with Gtk.EntryCompletion
hooked up) into a cell in a Gtk.TreeView
. Does anyone know how this can be done? (I just need entry completion on a text entry in a tabular view.)
Do I perhaps need to subclass Gtk.CellRenderer
or Gtk.CellRendererText
, and override the start_editing
method (or similar)? I can find examples of subclassing Gtk.CellRenderer
, but not modifying the editable behaviour. I can't find the source-code for the Gtk.CellRendererText
class, either.
I'm using Gobject Introspection (i.e. from gi.repository import Gio, Gtk, GLib, Gdk
).