Pradnyesh Sawant wrote:
- i have some d'loaded python scripts (eg: memaid-pyqt), which use
"import qt". what'll happen to those scripts? how much rework (if any) is necessary to get them into working condition again?
In my experience it requires quite a bit of work - I found it easier to rewrite one of my own programs from scratch rather than modify it (the logic could be copy/pasted, but the GUI I rewrote). The changes are definitely for the better, but if you're not the original author of the code you can expect it to be quite painful to modify it to use the new version. Some of it is fairly mechanical - searching for the new location of various functions and changing calls from QPushButton() to QtGui.QPushButton() etc. Other changes are more subtle, like changes in behaviour and deprecation of some widgets.
- can you kindly provide me with some good pyqt (using qt4 designer)
tutorials? the net provides qt4 tuts but not with designer :(
I don't really use the designer myself so I haven't looked, I find it is easier to maintain code I write from scratch rather than worrying about exactly how the designer & pyuic decide to do things. As Pradeepto Bhattacharya pointed out, the Qt4 documentation and examples are helpful - assuming you're conversant with C++. There are also some useful examples of PyQt4 code at: http://indico.cern.ch/contributionDisplay.py?contribId=33&confId=44 You might also look at: http://en.wikibooks.org/wiki/PyQt4
Chirag Wazir http://chirag.freeshell.org