Re: [pygtk] GtkTree?

2001-04-13 Thread James Henstridge

On 13 Apr 2001, Rob Brown-Bayliss wrote:

  
  The CTree widget can do everything Tree does, and is less broken.
 
 Hi, I have seen several people in this list mention that the Tree widget
 is broken, and the CTree also broken, but less broken
 
 How do you define broken in this case?  Could some one highlight the
 problems for me?

in some cases, GtkTree stops redrawing correctly (and the expanders stop
working when this happens), and the GtkTree widgets don't really act like
widgets when they are not the root of the tree.

 
 Also, I would like to set the background of a GtkCtree to white, but
 cant seem to make it work.

Modify your gtkrc file so that the bg[PRELIGHT] for the style applied to
CTrees widget.

Programatically, this would be something like:
  style = ctree.get_style().copy()
  style.bg[STATE_PRELIGHT] = ctree.get_colormap().alloc('white')
  ctree.set_style(style)

But this will make things look weird in some themes, so it is usually
better to modify the theme colours.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] gnome-print

2001-04-13 Thread Pier

Hi,
is gnome-print currently supported   by pygnome and if yes, could you please send me a 
small example about how to use it?

Thanks Pier
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk