self.cylinder_btn.setIcon(icon) to self.cube_btn.setIcon(icon) ? On Fri, Jun 19, 2015 at 8:41 PM, Todd Widup <todd.wi...@gmail.com> wrote:
> hey guys > > I have been trying to create an image button, but every way I found a > suggestion on how to try doesn't seem to work. > > self.cube_btn = QtGui.QPushButton("Cube") > icon = QtGui.QIcon("{0}winPub_PUB.png".format(self.icons)) > self.cylinder_btn.setIcon(icon) > > > ive tried that and I have tried setting the style sheet background-image > and neither work. > > any suggestions? > > -- > Todd Widup > Creature TD / Technical Artist > t...@toddwidup.com > todd.wi...@gmail.com > www.toddwidup.com > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CABBPk36-VSG0bzWig4ap1aQyBsZEKW%2BvzWcaveHWO-oLOXxFqw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CABBPk36-VSG0bzWig4ap1aQyBsZEKW%2BvzWcaveHWO-oLOXxFqw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- --:: Kurian ::-- -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhNw30Qde0%3D5vASf%3DwGgL2%3DVNn36zB_Jq7WMNgLbu5o4uA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.