On Tue, 2002-10-29 at 17:36, Malcolm Tredinnick wrote:
> On Tue, Oct 29, 2002 at 04:31:34PM -0600, Tanya Brethour wrote:
> > Ok. I am a newbie to gtk and python.. please do not let that scare you
> > aware :)
> > 
> > Essentially I have a ctree currently with many nodes in it. I want to be
> > able to "check" certain nodes. So I would have the label and a small
> > checkbox next to it. So the user can check certain items they want and
> > leave the ones they don't unchecked. Make sense? 
> 
> Are you using Gtk 1.2 still? Otherwise, it would be better to use things
> like GtkTreeView and friends in Gtk 2. GtkCTree is deprecated now.
> 
> If you are using Gtk 2, run gtk-demo (comes with the Gtk distribution)
> and look at the Tree View -> Tree Store demo. That shows you can do
> something like you are saying. There is also C source code available in
> that demo to show you how it is done. That might give you some hints.

And if you are using Gtk 1.2 you could use a style so that if the user
clicks on a row, change the style with GtkCList.set_row_style or
GtkCTree.node_set_row_style and unselect the row for them.

> 
> Malcolm
> 
> -- 
> Two wrongs are only the beginning.
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Steve McClure                   430 10th St NW
Racemi                          Suite N-210
http://www.racemi.com           Atlanta, GA 30318
[EMAIL PROTECTED]             voice/fax: 404-892-5850

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to