Python Forum
Python Forum
>
Python Coding
>
GUI
> pushbutton with image
Full Version:
pushbutton with image
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
issac_n
Jul-13-2020, 03:34 PM
hi all,
is there possible to make Qpushbutton with logo/pic like below?
https://ibb.co/k2fRLFn
Knight18
Jul-13-2020, 05:04 PM
Yup you can.
button = QPushButton(win) button.setIcon(QtGui.QIcon('myImage.jpg'))
I copied the code from here, as
reference
.
Python Forum
>
Python Coding
>
GUI
> pushbutton with image