Home Python Eventfeed for Harmattan

Python Eventfeed for Harmattan

 
Here is “Python EventFeed for Hammatan”, it’s basically the events view of swipe.nokia.com/designand is intended for third party developers to add their own content to this view.

This library allows you to post new events to the Harmattan Event Feed screen and receive callbacks when events are clicked. You can post updates about new items that are found and create other kinds of cool notifications 🙂

 

The Event Feed screen is available in MeeGo 1.2 Harmattan on the N950 and N9 – this library allows you to integrate Python code with it.

Simple example

from eventfeed import EventFeedService, EventFeedItem
service = EventFeedService('yourapp', 'Your App')
icon = '/usr/share/yourapp/icons/example.png'
item = EventFeedItem(icon, 'Hello World!')
item.set_body('How are you today?')
def on_item_clicked():
    print 'the user clicked the item'
item.set_custom_action(on_item_clicked)
service.add_item(item)
      

The resulting event should look like this:

Image

Downloads

Documentation

Documentation of the module can be found here:

GitHub repository

Either use the web interface or clone directly via

  git clone git://github.com/thp/python-eventfeed.git

 

Source thp.io

 

 

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the gambling and blockchain industries for major developments, new product and brand launches, game releases and other newsworthy events. Editors assign relevant stories to in-house staff writers with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.