[Sugar-devel] [DESIGN] Notifications
Daniel Narvaez
dwnarvaez at gmail.com
Thu Jan 30 07:46:38 EST 2014
Don't forget to add [DESIGN] for this kind of stuff.
On 29 January 2014 01:48, Sam Parkinson <sam.parkinson3 at gmail.com> wrote:
> Hi,
>
> I was working on a little notification thing as per the designs. You can
> download it and test it from here:
> https://github.com/SAMdroid-apps/sugar/tree/NotificationWIP and
> https://github.com/SAMdroid-apps/sugar-toolkit-gtk3/tree/NotificationsWIP.
> You can check out a test activity here:
> https://git.sugarlabs.org/~samdroid/hello-world/hello-notification-world.
> (To use the test, press notify and wait 3 seconds).
>
> Here are some pretty pics:
>
> [image: Inline image 1]
> (the thing is in the top-left)
>
> [image: Inline image 2]
>
> You can click on the notifications to close them. They do nothing since we
> don't (yet) have an intent system.
>
> API in sugar3.activity.Activity:
>
> def notify(self, summary, body, intent):
> """
> Display a notification with the given summary and body.
> The notification will have the activity's icon as the icon.
> **intent currently does nothing, so whatch this space**
> """
>
> See the example for usage :)
>
>
> Please tell me what you think :)
>
>
> Sam
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
--
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140130/61c57b34/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 45070 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140130/61c57b34/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 243125 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140130/61c57b34/attachment-0003.png>
More information about the Sugar-devel
mailing list