Hi Genjix
Thanks for your examples, I took a look on your examples and I found some common mistakes which we have when porting code from C++ to Python (memory management stuff), Then I have fixed and uploaded then to pyside-examples repository[1]. The ping pong examples works well without any modification with current PySide git version, The rogue examples had a problem, because you create the machine without parent then the machine die when you leave the function scope. The trafficlight, you add only redlight objects on machine I changed that and works fine. Others examples just works. Thanks again and fell free to submit any new example or some modification on current examples. [1]http://qt.gitorious.org/pyside/pyside-examples On Mon, Oct 25, 2010 at 7:39 AM, velociraptor Genjix <[email protected]> wrote: > > Hi, > > I've been rewriting the state machine examples into Python with the goal of > uploading them when I'm done. > > http://doc.qt.nokia.com/4.7/examples-statemachine.html > > However most of them don't work. I've attached them to this email. Only the > first 2 examples work, the last 4 have problems. Like the ping pong one goes > through 3 ping<->pongs and then Segmentation Faults. Yet I don't see any > problem there. > > If you take a look at the rogue.py then on line 72, that simple state machine > fails to set the property. > > Some examples like these would be very useful examples for showing usage of > signal/slots, properties and state machine in PySide. > > _______________________________________________ > PySide mailing list > [email protected] > http://lists.openbossa.org/listinfo/pyside > > -- Renato Araujo Oliveira Filho Instituto Nokia de Tecnologia - INdT Mobile: +55 (81) 8704-2144 _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
