I found myself with a sudden lack of urgent things to do last night, so I decided to learn something new. At first I wanted to concentrate on GTK, but when I ran into some trouble cross-compiling for my iPAQ, I dropped that in favor of giving Python a try.
It was _fun!_ I apt-getted the relevant packages, browsed aimlessly through the tutorials, and after a short while gave up on following the tutorials step-by-step and just plunged into writing a tiny app. I wanted to write a little calendar/notes program - nothing fancy, just something that can keep a diary of sorts. Having played around with QT, I was relatively familiar with boxes for layout and the slot/signal model for event handling. At first I had such a hard time translating the GTK C examples to Python bindings, but after a while I had sorta figured out what properties and members were called. It began innocently enough. I just wanted to display a couple of widgets on the screen. Fine, that worked. One GtkCalendar and one GtkText widget vboxed nicely. Then of course I wanted to make the GtkText widget editable... and to have it load and save data... and make the GtkCalendar choose which date to display... ... so it works now. Doogie Howser, eat your heart out. =) Yeah, Python is fun to program in. =D _Really_ fun, and quite easy to pick up. Anyway, my little calendar program is now on my iPAQ. =) Source available at http://cersa.admu.edu.ph/~sacha/python/mycal.py . Really, really simple program. You'll need the Python GTK bindings for this. Can't stop hacking on it. Must... pry... fingers... off... keyboard... ... just added jump-to-today feature... ... must stop! I have to leave some TODOs for later or tomorrow - font size, maybe... <muses> -- Sacha Chua <[EMAIL PROTECTED]> 3 BS CS geek =) Ateneo Cervini-Eliazo Networks (ACENT) tel: 63(2) 426-6001 loc 5925 BOFH excuse #287: Telecommunications is downshifting. _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
