Creating a rectangular icon

Antony Loebs barefootedjournalist at gmail.com
Wed Mar 3 02:59:48 CET 2010


On Tue, Mar 2, 2010 at 8:42 PM, Antony Loebs <barefootedjournalist at gmail.com
> wrote:

>
>
> On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
>
>> > self.button = Plasma.Label(self.applet)
>> > self.button.setImage(self.package().path() +
>> "contents/images/image.png")
>>
>> that should be: self.package().filePath("images", "image.png")
>>
>
> When I do that, I get a big red button with a white X. (This is using
> 4.4.1-0ubuntu1 on Kubuntu Lucid, just upgraded today.)
>
> Oops, my bad. I forgot a closing parenthesis at the end. Helps to run it
through plasmoidviewer... :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100302/4caba974/attachment.htm 


More information about the Plasma-devel mailing list