Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-11-2005, 09:57 PM   #1
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Rep: Reputation: 30
Question pygtk question

I have a treeview set up and want to center the text in some of the cells.
I googled everywhere and read over the pygtk tutorial and couldn't find a solution.
I'm assuming that I have to use something like this, with the appropriate data in the quotes:

I would also like to center the labels in the columns.
Please reply if you know of a solution to either questions or a possible direction I could start heading.

Thanks in advance,

Last edited by bendeco13; 04-11-2005 at 09:58 PM.
Old 04-13-2005, 03:26 AM   #2
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Original Poster
Rep: Reputation: 30
Well I found my solutions:
self.cell[i].set_property('xalign', 0.5)
Thanks anyways....

Unfortunately I have another question.
How would I go about adjusting the height of the column headers?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
textview in pygtk sailu_mvn Programming 0 03-01-2005 05:54 AM
PyGTK sailu_mvn Programming 1 02-28-2005 10:58 PM
Pygtk sailu_mvn Programming 0 02-28-2005 07:34 AM
importerror - pygtk cs-cam Linux - Newbie 5 01-31-2005 07:56 AM
Cannot Install PyGTK drxsmurf Linux - Software 8 10-20-2003 12:13 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration