[Glade-users] Combobox via treestore



Hello

I am trying to set up a treefilter and connect it to my combobox
here is the code I have


treeview=wtree.get_widget('main_treeview')
treestore=treeview.get_model()
treestore_filter=treestore.filter_new()

treestore_filter.set_visible_func(...)

combobox=gtk.ComboBox()
combobox.set_model(treestore_filter)
...
Missing code
...

after which I call refilter() regularly. Now I think I'm missing some  
code regarding cells and what not, correct?  One thing I've learned  
with these lists and trees is that they are extremely complicated.

Cheers


Peyman Askari




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]