This GTK 3 module written in python 3.3 will show the 5 latest tweets of a given account and refresh X given seconds.
It is a part of the Douane project.
I'm not a python expert developer, I'm just doing python at home so I didn't spent time to have compliant code with PEP8.
I have plan to do that later on but if an expert is passing here and wants to contribute, he will be the welcome!
I am using it for my application Douane configurator and here it is how it looks like:
The library is now available in a PPA.
sudo add-apt-repository http://repository.douaneapp.com/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 874CAFB5
sudo apt-get update
sudo apt-get install gtktwitterbox
You can import this Git repository as submodule in your project.
To do so open a terminal in the root path of your python project and execute the following:
git submodule add git://github.com/zedtux/gtktwitterbox.git gtktwitterbox
This command will create a new folder gtktwitterbox in your project.
Import it
from gtktwitterbox.twitter import GtkTwitterBox
Embed it
GtkTwitterBox(vbox_main, "douaneapp", 15)
- The first argument is the Gtk container where you want to have GtkTwitterBox.
- The second argument is the twitter account name
- The third argument is the interval of time to refresh tweets (in seconds)
You can also have a look at the test.py file
You can contribute to this project by adding support for new VCS or new frameworks.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request