Did you get the my examples on gitorious? I fixed the points necessary
to get this running.

After get all libraries from git make sure you regenerate the pyside
code with "make clean" before compile it.

If necessary you can join on #pyside channel to  get help to put all running.


On Mon, Oct 25, 2010 at 1:38 PM, velociraptor Genjix
<[email protected]> wrote:
>
> No problem ;) Happy to have helped!
>
> I downloaded them from the repo's but still the ping-pong example 
> Segmentation fault's:
> ping?
> pong!
> ping?
> pong!
> ping?
> pong!
> Segmentation fault
>
> And the rogue one fails to update the status property (see line 76), that's 
> why that big block was commented- surely the initial inputState should set 
> the property status to 'Move the rogue...', however nothing happens. But the 
> rest of the program works. I'm not sure what's wrong there since I can change 
> the property in the code, just not through the state machine.
>
> ----------------------------------------
>> Date: Mon, 25 Oct 2010 11:59:45 -0300
>> Subject: Re: [PySide] Rewritten state machine examples into Python
>> From: [email protected]
>> To: [email protected]
>> CC: [email protected]
>>
>> 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
>>  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
>



-- 
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

Reply via email to