[Sugar-devel] Need help with sugar-toolkit-gtk3
iamutkarshtiwari at gmail.com
Mon Apr 4 07:38:10 EDT 2016
Whenever we start an activity from homeview, it gets registered in
the Journal (through datastore.write()).
I have inspected the activity.py file but there is someplace else
besides activity.py where the datastore is being modified(activity
instance is being added). I need to figure this out to implement the
"Save As" feature to intervene the datastore.write() call so that user
could provide the activity name. Could anyone please point me in the
On 3/22/16, Tony Anderson <tony_anderson at usa.net> wrote:
> I am not sure what you are asking. Read the excellent comment in
> activity.py. There are set_canvas, read_file, and write_file among other
> examples of functions in activity.py directly accessible by the
> sub-class. Normally, that activity is referenced by 'self'.
> On 03/22/2016 12:02 AM, Utkarsh Tiwari wrote:
>> Is there any way to get the currently active
>> activity(sugar3.activity.activity -> class Activity()) instance ?
>> I need this access to call a function of "Activity class" in
>> activity.py to activate a feature I have integrated.
>> Utkarsh Tiwari
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel