View Single Post
Old 08-30-2014, 07:38 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,558
Karma: 19620479
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Well, yes, that's what I'm trying to do, but I can't find how to change the alignment of a cell. I've managed to get the desired result with this:

Code:
box = MessageBox(...)
box.gridLayout.addWidget(box.icon_label,0,0,Qt.AlignTop)
box.exec_()
but this does not look (codewise) right, it's adding a widget that's already there, not directly changing the alignment, and I just feel lucky that the icon is not duplicated. Simply using setAlignment(Qt.AlignTop) in various places didn't cause an error, but didn't work either.
Jellby is offline   Reply With Quote