[Kde-bindings] Fwd: Re: Button->setIcon
Thomas Olsen
tanghus at gmail.com
Fri Oct 23 10:56:37 UTC 2009
From plasma-devel:
---------- Forwarded Message ----------
Subject: Re: Button->setIcon
Date: Friday 23 October 2009
From: Marco Martin <notmart at gmail.com>
To: plasma-devel at kde.org
On Friday 23 October 2009, Thomas Olsen wrote:
> Just noticed that in PyKDE4 this [1] doesn't work:
>
> self.collapse_button = Plasma.PushButton()
> self.collapse_button.setIcon(KIcon("arrow-down"))
>
> but this does:
>
> self.collapse_button = Plasma.PushButton()
> self.collapse_button.nativeWidget().setIcon(KIcon("arrow-down"))
>
> [1]
> http://api.kde.org/4.x-api/kdelibs-
> apidocs/plasma/html/classPlasma_1_1PushButton.html#ab3e1854e4aba600f1c2baa7
> d077ea055
> http://api.kde.org/pykde-4.3-api/plasma/Plasma.PushButton.html#obj18970644
> 4
>
> Is this an error in the Plasma lib or in PyKDE4?
>
PushButton::setIcon() in c++ just calls nativeWidget()->setIcon() so i think a
problem in the bindings?
--
Marco Martin
_______________________________________________
Plasma-devel mailing list
Plasma-devel at kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
-------------------------------------------------------
--
Best Regards / Med venlig hilsen
Thomas Olsen
More information about the Kde-bindings
mailing list