[PyKDE] File Drag n drop
newellm at blur.com
Wed Jan 10 21:25:16 GMT 2007
On Tuesday 09 January 2007 16:57, Tony Cappellini wrote:
> After looking through the examples & demos, I don't see an example of what
> I'm looking for.
> I would like to be able to drag a file or files onto a Python QT app, and
> have the app process the file(s).
> The Draggable Icons example isn't quite the same. I want to drag a file
> from outside of the application, onto the running application.
> Does anyone know where I can find an example to do this?
from PyQt4.QtGui import *
self.setText( "Drop Files or Urls Here" )
self.setText('\n'.join([str(url.toString()) for url in
app = QApplication(sys.argv)
w = DropLabel()
PS. Sorry if this shows up twice, had email issues this morning
More information about the PyQt