tags:

views:

566

answers:

3
+1  Q: 

GTK Twitter Client

I am learning Python and PyGTK. I'm trying to write a Twitter client. Which widget is best suited for displaying the Tweets (Timeline). I can do it easily with textview but it doesn't support sub widgets to display users image.

Tried using TreeView but it seems to be an overkill and is too complex.

I'm using Glade

+3  A: 

I would suggest GtkTreeView, too. I agree it's kind of complicated (especially if you had time with GTK+ 1.2.x to get used to GtkCList, which is now deprecated). Still, it's a very powerful API and widget, and you will not regret learning it.

Trees are flexible and easy to use, and you will probably find more than once place where you can use one, so you will get a lot of use out of the learning.

There should be plenty of tutorials, showing the necessary steps.

unwind
+1, I think a treeview would be ideal for listing tweets. It can be hard to figure out but this tutorial helps http://pygtk.org/pygtk2tutorial/index.html
DoR
+5  A: 

You could try Webkit (the browser rendering engine) using pywebkitgtk. It let's you develop in web technologies (HTML, CSS, JS) on the desktop. I think Gwibber, the microblogging client, uses it.

The widget you'd have to use is webkit.WebView. I'm not able to post more links here, just google for "HOWTO Create Python GUIs using HTML".

Fabian Neumann
+1 I think this is easier in the long run, especially since the OP already sees parallels to a TextView, and secondly since theming can be implemented very easily (with CSS).
kaizer.se
this is how gwibber does it. https://launchpad.net/gwibber
Autoplectic
A: 

Actually the TreeView does support embedding images and widgets within the text. Checkout the PyGTK Tutorial section on TextView specifically: Inserting Images and Widgets