David Boddie wrote: > > I tested this code with Python 2.4.2, Qt 4.1.4 and PyQt 4.1, and I > think you should be able to do the same in your code. >
First of all, thanks a lot for the very precise and quick help! Ot works now. > 1. If you are prepared to try Qt's model/view classes, you can exert > more control over the way drag and drop is handled. They're not > quite as straightforward as the item-based classes that you're > already using, but you benefit from greater reusability of your > components and better control over the appearance and behaviour > of the view widgets. I will certainly give it more thought and probably reimplement this program with model/view classes. Thanks for the heads-up. > 2. You seem to prefer adding methods to specific instances rather than > subclassing and reimplementing methods in the base class. I hope > you don't mind me asking, but is that because it takes less code, > because you find it conceptually easier, or is there another reason > that I'm missing? > I am pretty new to Python and more so with PyQt4 and am still to learn a lot of things. I realized the issue with adding methods to specific instances a bit after I emailed to the group. I am going to subclass the widget classes in the program. Again, thanks a lot. Cheers! Harshad. -- http://mail.python.org/mailman/listinfo/python-list