Eneko Alonso

un Navarro en California

Projects

¿Eres español y vives fuera de España? ¿Estás pensando en salir una temporada a trabajar o estudiar en el extranjero? Si es así, no dejes de visitar Spaniards.es, la Comunidad de Españoles en el Mundo
spaniards.es

Recent comments

10:41 America/Los_Angeles


13

13

Creating my own theme

Like in the old days, when I had EBKblog, I have decided to create my own theme. Is not that Drupal themes are that bad, but no one of them meets all my needs. I have tried multiple themes and there is always something I don't like. That shouldn't be that bad. In fact one could fix those little things here and there to make the them perfect.

But the real problem is that I have realized get tired of a theme very soon. But this only happens if I haven't designed the theme. So here we are, with a blank theme again, no css, no images yet. Let's see how it works :)

160bpm

160bpm

New drupal modules for my blog

Since I got my Flickr account (3 years ago?) I have used it for storing all the images I use on my blog posts. But the process of uploading pictures, specially screenshots, just for sharing on your blog is still a little bit of a pain, plus I think a little bit unfair. Although Flickr allows you to do it, as long as the picture links back to Flickr, I think Flickr wasn't designed for that. Don't take me wrong. I still love Flickr, but from now on I'll try to use it only for my camera-taken pictures and videos.

So in order to have a beautiful experience with Drupal and images I have installed these modules:

  • Image - Allows uploading, resizing and viewing of images.
  • Image Assist - This module allows users to upload and insert inline images into posts.

This way, the process of uploading pictures doesn't get easier, but inserting the images on the articles is a piece of cake, including image descriptions, alignments, linking, etc. And there is no longer need to go anywhere else to see the full resolution image :)

Building Python GUIs with Tkinter and wxPython

Last saturday I was showing to you how pretty user interfaces can be built on Cocoa-Python. As I said, I had heard about other GUI Python libraries, but I hadn't tried them... until today. I have found this nice tutorial for both Tkinter and wxPython.

The tutorial says the first one is a standard library which comes with all Python installations while the second one does not, although I have tried both and both of them worked on my Mac OS X 10.5 without needing to install anything. It really surprised me that, since all the screenshots are from Windows, everything worked just fine on Mac OS X. That means you can have a graphic user interface your scripts, no matter if you run them on Windows or Mac OS X (I'll guess they work on Linux too :)

Another thing I liked is the cleanliness of the code, specially the code of the wxPython example, very easy and intuitive. The downside of both of these libraries is that you have to build the user interface manually on the code, including all component positioning and bindings.

[img_assist|nid=407|title=Building Python GUIs with Tkinter and wxPython|desc=Running the wxPython demo in TextMate|link=node|align=center|width=500|height=313]

So as you see, there are plenty of options available. Go Python!