Here are the slides and the successive versions of the TwitterStock.py file for "Creating an Online Desktop Sidebar Widget for Your Service" talk for GUADEC 2008.

Slides

GUADEC-Presentation.odp

Slides that introduce background concepts such as HippoCanvas and org.gnome.OnlineAccounts DBus service, as well as show how to create a Twitter stock step-by-step.

Hippo Canvas Example

HippoCanvasExample.txt

A simple example for how to use HippoCanvas. Displays ellipsized text and an image aligned at the right of the window.

Original TwitterStock.py

TwitterStock_Version1.py

Displays a place holder Twitter stock on the sidebar.

Changes for version 2

TwitterStock_Version2.py

Get user's Twitter account from the accounts system, display it in the stock. Add a button that opens an accounts dialog for Twitter.

Changes for version 3

TwitterStock_Version3.py

Add More button that lets the user visit twitter.com

Changes for version 4

TwitterStock_Version4.py

Check user credentials by using liburl2 to make a request

Changes for version 5

TwitterStock_Version5.py

Use AsyncHTTPFetcherWithAuth from bigboard/bigboard/libbig/http.py to make the web request asynchronous. Add some style in stock.css.

Changes for version 6

TwitterStock_Version6.py

Add an entry box for entering status and a character counter. Submit the status to Twitter on Return key press.

Final version of TwitterStock.py

TwitterStock_Version7.py

Use a polling task to make periodic requests to Twitter. Use python-twyt library to get friends' status updates. Make calls to python-twyt inside a thread. Display friends' statuses in the stock. Use slideouts for displaying details of friends' statuses.

Attic/OnlineDesktop/CreatingSidebarWidget (last edited 2013-11-22 20:34:49 by WilliamJonMcCann)