jverzani / gWidgetsWWW2

gWidgets API for web programming
7 stars 2 forks source link

gcanvas, gimage #3

Closed jverzani closed 11 years ago

jverzani commented 11 years ago

Not working for all browsers/OS. See issue #2

jverzani commented 11 years ago

canvas is no longer on CRAN, will have to deprecate gcanvas.

jranke commented 11 years ago

canvas is now pretty much eliminated from the package, but gimage needs some care I think. I am using the following script (slightly adapted from the exampe from gimage):


w <- gwindow("hello") sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w) g <- ggroup(cont=w, horizontal=FALSE)

f <- get_tempfile(ext=".png") png(f) hist(rnorm(100)) dev.off()

i <- gimage(f, container=g)


and loading this with load_app() does not display anything on Windows 7 with firefox, nor on Debian wheezy with iceweasel.

jverzani commented 11 years ago

The size of gimage is initially c(0,0). You can reset via size(i) <- c(400, 400), say.

jranke commented 11 years ago

aah, thanks!

On Tue, Nov 05, 2013 at 06:11:30AM -0800, john verzani wrote:

The size of gimage is initially c(0,0). You can reset via size(i) <- c(400, 400), say.


Reply to this email directly or view it on GitHub: https://github.com/jverzani/gWidgetsWWW2/issues/3#issuecomment-27775056