<geekstuff>
Off sick today and spent some time tinkering with python and the flickr api. I have messed about a bit with the flickr api and c# before - but I thought I would give python a go - not as cool as ruby though apparently. All was going well messing around with the flickr api downloading urls, parsing xml etc until it came time to display some images. Time to search for a suitable gui toolkit - some good info here. Decided to give Python Qt (PyQt) a go. It was a bit of a pain to get going - mainly because most of the examples I could find were for Qt3 and not Qt4.
Anyway - I got it up and running on windows xp using msis and prebuilt binaries (yes - I know ... taking the easy way out !)
- Downloaded the latest python (V2.5) from python.org as an msi here.
- Dowloaded the latest Qt 4.2.1 from trolltech as self exe installer here.
- Downloaded PyQt4 from riverbankcomputing as a self exe installer here.:
Need to make sure to add Qt to your path : eg. C:\Qt\4.2.1\bin
Run IDLE, a python interactive shell and enter the following
import PyQt4.Qt as qt
app = qt.QApplication([])
hello = qt.QPushButton("Hello world",None)
hello.resize(100, 30)
hello.show()
app.exec_()
All that for this Enough for today .... hopefully I will get around to doing something a little more useful with it. Thanks to this link which helped me on my way.
</geekstuff>
No comments:
Post a Comment