I just accidentally discovered a great drag'n'drop feature of MSIE6

Drag an image onto another brower window and bang it displays the cached
version. That makes it much faster when you want to save/email/whatever
no more fiddly right-mouse clicking.

Yesterday I was playing around with the wxPython demos. there's nice one with
drag'n'drop. I want this for rebol apps =>

-open a browsder 
-drag an image onto rebol/view... 
-zing upload to remote site

What is needed to do this in REBOL?
Would'nt it be sweet to have some of this in /View?


from wxPython.wx import *
#----------------------------------------------------------------------
class MyURLDropTarget(wxPyDropTarget):
    def __init__(self, window):
        wxPyDropTarget.__init__(self)
        self.window = window

        self.data = wxURLDataObject();
        self.SetDataObject(self.data)

    def OnDragOver(self, x, y, d):
        return wxDragLink

    def OnData(self, x, y, d):
        if not self.GetData():
            return wxDragNone

        url = self.data.GetURL()
        self.window.AppendText(url + "\n")

        return d

http://wiki.wxpython.org/index.cgi/FrontPage
http://wiki.wxpython.org/index.cgi/DragAndDrop

./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to