Menu

#6 Drop support for _location_ of drop!

open
nobody
None
5
2004-08-12
2004-08-12
No

well, the drop stuff is great... but *duh* it's as
useful as a dead dog to a monkey unless you can tell
_where_ the drop is occurring.

with this patch, you can drop files onto an icon,
calculate where your icon is, and then execute the
command plus the URL argument:

def itemDropped(widget, text, x, y):

dropText = text.strip()
#if len(dropText) > 0 and dropText[-1] == '\r':
# dropText = dropText[:-1]
print "dropped: ", xZoomBoundaryMin,
xZoomBoundaryMax, x, y
icon_num = getIconNum(x, y)
print "icon: ", icon_num
if icon_num >= 0 and icon_num < numIcons:
prog_cmd = "%s %s" %

(commands[conf_section][icon_num], dropText)
print "command:", prog_cmd
karamba.execute(prog_cmd)

Discussion

  • Luke Kenneth Casson Leighton

    drag-drop x,y coords

     
  • Luke Kenneth Casson Leighton

    Logged In: YES
    user_id=80200

    update: also included is

    - redone systray size patch (against latest cvs)
    - experimental adding of a setState "On Top" thing, i want
    to try to get widgets to flip on top or below under SK
    control
    - correction of several uses of "it is" instead of "its".
    it's the 21st century. piss-poor spelling is not optional,
    especially when google exists.

     
  • Luke Kenneth Casson Leighton

    update

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.