Isaac 'Clay' Claymore asked me to forward this to the list. -----Forwarded Message-----
From: Isaac Claymore <[EMAIL PROTECTED]> To: Steve McClure <[EMAIL PROTECTED]> Subject: Re: [pygtk] Howto make a GtkCList cell editable Date: 11 Jul 2002 07:31:47 +0800 Hi, After adding GtkFixed.put() calls, your method works. Thanks for that ;) However, to devise a general way to calculate size and position of cell widgets can be a real pain: 1. list.get_window().height is not dependable, since it can be fixed regardless of how many rows the list has; 2. list['row_height'] is always zero, at least on my box, if list.set_row_height has not been explicitly invoked, and I believe setting row height by hand is no wise; 3. there can be a scroll window wrapping around the clist, making things even more complex... Nonetheless, the 'x and width' part of the calculation is rather easy... AFAIK, GtkCList is deprecated in GTK2.0, so there may be a better way, or even a new widget, to do this in GTK2.0 ... -- Steve McClure 430 10th St NW Racemi Suite N-210 http://www.racemi.com Atlanta, GA 30318 [EMAIL PROTECTED] voice/fax: 404-892-5850
signature.asc
Description: This is a digitally signed message part
