HI <br><br>I want to do alignment in image and text , i want that image should be on center top and text should be at the bottom of image . I search for it but didnt get the relevant search result . Can you please tell me how to do that ? <br>
<br>Chunk of Code for Button Without Text:<br><br> button = QtGui.QPushButton(widget)<br> button.setIcon(QtGui.QIcon('default.gif'))<br> button.setIconSize(QtCore.QSize(100,100))<br>
button.setGeometry(xval,yval, 130, 130)<br> button.connect(button, QtCore.SIGNAL('clicked()'), partial(calluser, user_Handle))<br><br>Chunk of Code for Button With Text:<br><br> button = QtGui.QPushButton(widget)<br>
button.setIcon(QtGui.QIcon('default.gif'))<br>
button.setIconSize(QtCore.QSize(100,100))<br>
button[text].setText(QtCore.QString(user_Handle))<br>
button.setGeometry(xval,yval, 130, 130)<br>
button.connect(button, QtCore.SIGNAL('clicked()'),
partial(calluser, user_Handle))<br><br>Thank You<br><br>Ahmed<br>