Thank you for help, it works right :)<br><br><div class="gmail_quote">On Mon, Jan 12, 2009 at 7:40 PM, Gökmen GÖKSEL <span dir="ltr"><<a href="mailto:gokmen@pardus.org.tr">gokmen@pardus.org.tr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Hello,<br>
Hi !,<br>
<div class="Ih2E3d"><br>
> I'm trying to do a very simple python plasmoid in order to show a<br>
> Plasma.Label, but when I try to run it, I get an error:<br>
</div>It will be done if you change your init method like this;<br>
<br>
def init(self):<br>
# first of all we need a layout..<br>
self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet)<br>
<br>
# these are ok..<br>
self.setHasConfigurationInterface(False)<br>
self.setAspectRatioMode(Plasma.Square)<br>
<br>
# your label's parent is self.applet not self<br>
_label = Plasma.Label(self.applet)<br>
<br>
# set some texts<br>
_label.setText("Hello Plasma !")<br>
<br>
# and add it to layout<br>
self.layout.addItem(_label)<br>
<br>
# and your huge size constraints :)<br>
self.resize(500, 500)<br>
<br>
> Thanks a lot!.<br>
Nope ;)<br>
<font color="#888888"><br>
--<br>
Gokmen GOKSEL<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>"El Mundo está en las manos de aquellos que tienen el coraje de sońar y correr el riesgo de vivir sus sueńos."<br>