471,348 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

gtk.TreeView cell inconsistent state



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
0 1031

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by R. Sammut | last post: by
2 posts views Thread by Srinivasa Raghavan | last post: by
4 posts views Thread by Karim El Jed | last post: by
4 posts views Thread by Pål Andreassen | last post: by
1 post views Thread by James | last post: by
1 post views Thread by =?Utf-8?B?QnJpYW4=?= | last post: by
2 posts views Thread by =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.