Drop support for _location_ of drop!
Status: Beta
Brought to you by:
ageitgey
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)
drag-drop x,y coords
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.
update