By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,533 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,533 IT Pros & Developers. It's quick & easy.

gtk.TreeView cell inconsistent state

P: n/a


In the below code setting cell to inconsistent sets entire column inconsistent (renderer).However, I need a third state off | on | inconsistent . How can I change one path->cell?
Any help appreciated.

Thanks
john

# get current value
fixed = model.get_value(iter, MARK_FOR_COLUMN)
icont = model.get_value(iter,MARK_FOR_INCONSISTENT)
# clear for action
model.set(iter,MARK_FOR_INCONSISTENT,False)
cell.set_property('inconsistent',False)
cell.set_property('active',False)
# ready for action
# find resolution to all being marked inconsistent
# flip modified as we are changing it
model.set_value(iter,MODIFIED_COLUMN,not modified)
if icont:
cell.set_property('inconsistent',True)
else:
model.set(iter,MARK_FOR_INCONSISTENT, not icont)
model.set(iter, MARK_FOR_COLUMN, not fixed)
model.set(iter,ICON_COLUMN, icon)
model.row_changed(path,iter)
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
Dec 22 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.