[Sugar-devel] Need help with sugar-toolkit-gtk3
Tony Anderson
tony_anderson at usa.net
Mon Mar 21 20:21:02 EDT 2016
Hi,
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'.
Tony
On 03/22/2016 12:02 AM, Utkarsh Tiwari wrote:
> Hi,
>
> 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.
>
> Thanks,
> Utkarsh Tiwari
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
More information about the Sugar-devel
mailing list