[R] Inserting a jpeg into an existing widget

From: Daniel Zamykal <daniel.zamykal_at_jcu.edu.au>
Date: Tue, 17 Jun 2008 09:49:29 +1000


Does anyone know how to insert a jpeg image into a widget.

This is a portion of the code I have used to create the widget. I would like to insert an image in the bottom corner.

Cheers

tt<-tktoplevel()
fontHeading2 <- tkfont.create(family="arial",size=16, slant="italic") fontHeading3 <- tkfont.create(family="arial",size=12) fontTextLabel <- tkfont.create(family="arial",size=12) fontlabel <- tkfont.create(family="arial",size=10,weight="bold")

tkgrid(tklabel(tt,height=2,width=50, text=""))
tkgrid(tklabel(tt,text=""))
tkgrid(tklabel(tt,text="'Enhance Your Decision Making'", font=fontHeading2, 
foreground="black"))
tkgrid(tklabel(tt,text=" v 4.0", font=fontTextLabel))
tkgrid(tklabel(tt,height=2,width=50,text=""))
tkgrid(tklabel(tt,text=""))

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 16 Jun 2008 - 23:51:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 00:30:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive