Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-21 Thread Gonzalo Odiard
Just note this is a hack. The code in jarabe is not for use in activities, but is the best we can do right now, until http://wiki.sugarlabs.org/go/Features/Start_activity_from_another_activity is implemented. Gonzalo On Sat, Apr 19, 2014 at 7:39 PM, Sam Parkinson sam.parkins...@gmail.comwrote:

Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-20 Thread Puneet Kaur
the window manager warning and two lines above that were due to issues in python activity gui , so that can be fixed, the main problem is I guess due to the line like this 1397964069.586200 ERROR root: Model for activity id 802cb24606a23ed144632322e161341d14eafb4f does not exist. in shell.log

[Sugar-devel] launching a native python activity window from web activity

2014-04-19 Thread Puneet Kaur
Hello all, I am trying to launch native activity from a webactivity , can you please let me know how it can be done ? I have made a small native python activity (herehttps://github.com/puneetgkaur/pygame_camera) {some basic gui toolbars yet to be included, just a gtk window with a webcam output

Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-19 Thread Sam Parkinson
Hi, Currently there is no clean way to launch any activity from inside any other one! I think someone was working on an intents system, but I don't know the status of that. Sam On Sun, Apr 20, 2014 at 2:38 AM, Puneet Kaur puneet.gk...@gmail.com wrote: Hello all, I am trying to launch

Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-19 Thread Sebastian Silva
Hi, I haven't seen how it does it, but Develop Activity does launch the active activity/project. I dunno if it's clean, but it works! Regards, Sebastian El sáb, 19 de abr 2014 a las 4:54 PM, Sam Parkinson sam.parkins...@gmail.com escribió: Hi, Currently there is no clean way to launch any

Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-19 Thread Sam Parkinson
Ah, the develop activity. It actually has a nice simple hack from jarabe.model import bundleregistry from sugar3.activity import activityfactory registry = bundleregistry.get_registry() bundle = registry.get_bundle(self.bundle.get_bundle_id())

Re: [Sugar-devel] launching a native python activity window from web activity

2014-04-19 Thread Puneet Kaur
Thanks for replying and giving the pointers.I guess strategy for python activity launching another can be made useful and the ideas can be imported for the webactivity as well. On Sun, Apr 20, 2014 at 8:09 AM, Sam Parkinson sam.parkins...@gmail.comwrote: Ah, the develop activity. It actually