[R] Display a jpeg inside a widget which already has text

danzam daniel.zamykal at jcu.edu.au
Mon Jun 16 08:00:29 CEST 2008


Hi 

I am trying to insert a jpeg into a widget I have created. 
I have used this link
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/showImage.html to
display a jpeg inside a newly created widget but would like some info on how
to insert into a pre existing widget. 
This is my code below for my first widget. 

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=""))

##I would like to insert an image into this widget


Any help would be greatly appreciated.........

cheers
Daniel 


-- 
View this message in context: http://www.nabble.com/Display-a-jpeg-inside-a-widget-which-already-has-text-tp17858340p17858340.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list