Showing posts with label pygtk. Show all posts
Showing posts with label pygtk. Show all posts

April 23, 2008

Twitter Client

I tried Twitux but I didn't like it. So instead, when I have the time, I'll write a PyGTK client using the python-twyt wrapper. Of course I'll probably do this after I work on Parcellite, which I've been neglecting lately.

Anyone know any twitter clients besides Twitux?

Edit: I designed a GUI in glade I am happy with and instead picked the python-twitter wrapper. After I finish Parcellite v0.8 I will work more on it. Also, I'm calling it Nitwit :)

February 25, 2008

Translations, Coding and Brawl

Over the weekend the lead developer of BillReminder, Og Maciel, mailed me about his app needing an updated spanish translation. I helped Og with some spanish translations quite a while ago when I used BillReminder's source to teach myself PyGTK and I contacted to thank him for his app. So on saturday I entertained myself updating the translations and mailed it to him so he could commit it.

I hacked a bit of Parcellite afterwards and released v0.6.1 which had some bugfixes that were in the svn for weeks. I feel that it is stable enough now to include that i18n header file and translate it to various languages. Maybe Og could help with that.

At night, I went over to a friend's house who had a modded Wii to play some Super Smash Bros: Brawl. Right now I'm having a serious withdrawl, I need to play moar! Can't wait to get my hands on my own copy and practice for competitive play.

December 5, 2007

Language Readability

The latest xkcd comic is win.

For educational purposes, I will compare a simple GTK+ about dialog in Python versus one in C.

Python
about_dialog = gtk.AboutDialog()
about_dialog.set_icon(about_dialog.render_icon(gtk.STOCK_ABOUT, gtk.ICON_SIZE_MENU))
about_dialog.run()
about_dialog.destroy()


Simple, readable. All I did was create a dialog, set its icon and name, run it then destroy it. In C it's a different story.

C
GtkWidget* about_dialog = gtk_about_dialog_new();
gtk_window_set_icon(GTK_WINDOW(about_dialog), gtk_widget_render_icon(about_dialog, GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU, NULL));
gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about_dialog), "Parcellite");
gtk_dialog_run(GTK_DIALOG(about_dialog));
gtk_widget_destroy(about_dialog);


Sacrificing readability for speed? I think it's worth it.

November 19, 2007

Parcellite v0.4



I released Parcellite v0.4 a little while ago after I finished hacking its new actions feature. Now that I finished implementing what I wanted in a clipboard manager, I find myself staring at the source thinking "what now?" I can probably add a few more things without bloating it, I just have to figure out what those things are going to be. I think maybe I'll translate it to various languages to kill time.