def set_up_completion(self):
completion = self.gtk_completion = Gtk.EntryCompletion()
self.completion_choices = Gtk.ListStore(str)
self.completion_choices_as_set = set()
completion.set_model(self.completion_choices)
completion.set_text_column(0)
if self.gtk_completion_enabled:
self.set_completion(completion)
评论列表
文章目录