LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-11-2005, 09:57 PM   #1
bendeco13
Member
 
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:

Code:
self.cell[i].set_property('')
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,
Bendeco

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

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

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


Reply


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


All times are GMT -5. The time now is 11:56 PM.

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