jverzani / gWidgets2

Rewrite of gWidgets
35 stars 9 forks source link

addHandlerMouseMotion is not working #92

Open elpibeperez opened 7 years ago

elpibeperez commented 7 years ago

I wrote this small program to test the handler for mouse motion. Change lena_img with a valid path to a jpeg image When I change addHandlerMouseMotion to addHandlerClicked, the program works as expected. Is the mouse motion event not implemented? Or I am not working with the correct stack?

gWidgets2 1.07 gWidgets2RGtk2 1.05 R version 3.2.2 (2015-08-14) -- "Fire Safety" R studio Version 0.99.896 Ubuntu 16.10

library(gWidgets2RGtk2)
library(gWidgets2)
library(cairoDevice)
library(ggplot2)
lena_img = "/path/to/some/jpg/image.jpg"
WINGRAPH0 <- gwindow("")
gnb <- gnotebook(container=WINGRAPH0)
image <- gimage(lena_img, container=gnb)
id <- addHandlerMouseMotion(image, function(h, ...) print ('AAAA'))