Glen Winters wrote: > Hello, > > I'm new to the list and have a question about making a TreeView. I've > searched around the web for the answer but haven't had any luck. > > I've got a TreeView to mimic the look of a table and I got the cels to > center their text using the attribute xalign=0.5 but I can't figure out > how to do this with the headers. How can I manipulate the text and > alignment of the TreeView headers?
The method that you're looking for is on the gtk.TreeViewColumn object. Call "c = treeview.get_column(n)" to get the object if you don't already have it, then "c.set_alignment(0.5)" to centre the text in it. -- Tim Evans Applied Research Associates NZ http://www.aranz.com/ _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/