Skip to content

Instantly share code, notes, and snippets.

@rkc-rkc
Created July 7, 2020 14:39
Show Gist options
  • Save rkc-rkc/e6db995094e37c02a19ff524c8a72797 to your computer and use it in GitHub Desktop.
Save rkc-rkc/e6db995094e37c02a19ff524c8a72797 to your computer and use it in GitHub Desktop.
local dt = require("darktable")
local function vcb() --evt, ov, nv)
print('funny')
end
local function cb() --evt, img, xtra)
print('fun')
end
do
print("DT API Version " .. dt.configuration.api_version_string)
dt.print_log("gonna register")
dt.register_event("mouse-over-image-changed", vcb, "Mouse over on image")
-- dt.register_event("shortcut", cb, "Mouse over on image")
-- dt.register_event("view-changed", vcb, "View Changed")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment