[Sugar-devel] how to run the Physics Activity as a standalone application?
Walter Bender
walter.bender at gmail.com
Thu Apr 8 22:02:51 EDT 2010
On Thu, Apr 8, 2010 at 9:14 PM, Rafael Enrique Ortiz Guerrero
<dirakx at gmail.com> wrote:
> Vimal,
>
> Walter did some work about this with Turtle Art,
> you might want to look into it.
>
> Rafael Ortiz
>
A more simpler example would be Abacus.
http://git.sugarlabs.org/projects/abacus/repos/mainline/trees/master
-walter
>
> On Thu, Apr 8, 2010 at 11:06 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>> On Sat, Apr 3, 2010 at 03:46, Vimal Joseph <vimaljoseph at gmail.com> wrote:
>>> Hi,
>>>
>>> Is it possible to run the Physics activity as a standalone application?
>>> I've tried that (Physics-4.tar.gz) and got the following error:
>>>
>>> Traceback (most recent call last):
>>> File "physics.py", line 129, in <module>
>>> main()
>>> File "physics.py", line 123, in main
>>> game = PhysicsGame(screen)
>>> File "physics.py", line 50, in __init__
>>> self.canvas = olpcgames.ACTIVITY.canvas
>>> AttributeError: 'NoneType' object has no attribute 'canvas'
>>>
>>> I've installed the pygame and box2d and related libraries. I use Ubuntu
>>> 9.10
>>
>> Hi Vimal, you will need to modify Physics to not depend on
>> sugar-specific stuff if you want it to run outside Sugar.
>>
>> Regards,
>>
>> Tomeu
>>
>>> thanks,
>>>
>>> ~vimal
>>>
>>> --
>>> Libarate your documents, Celebrate document freedom day 2010
>>> Use OpenOffice : http://openoffice.org
>>> http://documentfreedom.org
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Sugar-devel
mailing list