[PyKDE] Re: alignment in table

Mike Rovner mrovner at cadence.com
Fri May 12 22:25:41 BST 2006


Jim Bublitz wrote:
> You need to do something like this:
> --------------------
> class AlignTableItem (QTableItem):
> 	def __init__  (self, table, et):
> 		QTableItem.__init__ (self, table, et)
> 
> 	def alignment (self):
> 		return Qt.AlignCenter

I guess you can skip "empty" init:

class AlignTableItem (QTableItem):
	def alignment (self):
		return Qt.AlignCenter

/mr




More information about the PyQt mailing list