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:

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 tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors 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.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.