def __init__(self, attr, **kwargs): GridColumn.__init__(self, attr, **kwargs) self.completion = Completion(gtk.ListStore(str, str)) self.completion.on_fill = self.completion_fill self.completion.on_select = self.completion_select column = self.completion.column cell = gtk.CellRendererText() column.pack_start(cell) column.set_attributes(cell, text=0) cell = gtk.CellRendererText() column.pack_start(cell) column.set_attributes(cell, text=1)
def __init__(self, model, on_check=None): GridColumn.__init__(self, 'checked_state') self.model = model self.checks = {} self.dr = None self.on_check = on_check
def __init__(self, attr, choices, **kwargs): GridColumn.__init__(self, attr, **kwargs) self.choices = choices self.completion_choices = [v for k, v in self.choices] self.completion = make_simple_completion(self.completion_choices)