<div dir="ltr">I'm now trying to change the QRectF of the button widget, but it seems like it won't move from it's original location.<br>This is what I'm trying to do:<br><br>        s1.assignProperty(self.label, "text", "in state 1")<br>

        s1.assignProperty(self.button1, "geometry", QtCore.QRectF(20, 20, 100, 50))<br>        <br>        s2.assignProperty(self.label, "text", "in state 2")<br>        s2.assignProperty(self.button1, "geometry", QtCore.QRectF(10, 10, 100, 50))<br>

        <br>        s3.assignProperty(self.label, "text", "in state 3")<br>        s3.assignProperty(self.button1, "geometry", QtCore.QRectF(0, 0, 100, 50))<br><br>where am i wrong this time? thanks :)<br>

<br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 10:00 AM, Itay Brandes <span dir="ltr"><<a href="mailto:akari.il@gmail.com" target="_blank">akari.il@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Thanks!<div><div class="h5"><br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 9:30 AM, Vincent Vande Vyvre <span dir="ltr"><<a href="mailto:vincent.vandevyvre@swing.be" target="_blank">vincent.vandevyvre@swing.be</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 08/07/12 00:37, Itay Brandes wrote:<br>
> Hey,<br>
> I'm trying to start a QStateMachine and seem to fail.<br>
><br>
> Here is my code: <a href="http://pastebin.com/mQmyva9K" target="_blank">http://pastebin.com/mQmyva9K</a><br>
> Where am i wrong?<br>
><br>
> Thanks.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
You must keep a reference of the machine.<br>
    self.machine = QtCore.QStateMachine()<br>
<span><font color="#888888"><br>
--<br>
Vincent V.V.<br>
Oqapy <<a href="https://launchpad.net/oqapy" target="_blank">https://launchpad.net/oqapy</a>> . Qarte+7<br>
<<a href="https://launchpad.net/qarte+7" target="_blank">https://launchpad.net/qarte+7</a>> . PaQager <<a href="https://launchpad.net/paqager" target="_blank">https://launchpad.net/paqager</a>><br>
<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>