search for: changecolor

Displaying 3 results from an estimated 3 matches for "changecolor".

2005 Sep 05
1
tcltk, X11 protocol error: Bug?
...m source (not the deb package). My version of tcl/tk is 8.4. The code is below. If anyone sees something I am doing foolish let me know, otherwise I will file a bug report. Nicholas ##### File clrramp2.r ############## require(tcltk) clrRamp <- function(n.col, b.color=NULL,e.color=NULL){ B.ChangeColor <- function() { b.color <<- tclvalue(tkcmd("tk_chooseColor",initialcolor=e.color, title="Choose a color")) if (nchar(b.color)>0){ tkconfigure(canvas.b,bg=b.color) Rmp.Draw() } } E.ChangeC...
2006 Apr 25
8
Does Rails suppports XHTML for views for inline SVG''s?
I have following piece of code(which when saved in a file with .xhtml extension and opened in Mozilla 1.5.0.2 works fine); <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <head> <title>SVG within XHTML Demo</title> </head> <body> <p> You can embed SVG into XHTML, provided that your
2009 Jul 09
2
How to Populate List
...should be able to pass this color to the color button handler and see what the selected color is. HOWEVER, this still doesn't work.  gtkColorButtonGetColor still does not modify the created color. >:( require rgtk2 b<-gtkColorButtonNew() gw <- gtkWindow(show=F) gw$Add(b) gw$Show() changeColor<-function(b){     color = as.GdkColor('white') # create a color to change     message('initial color value')     print(color)# print it out     gtkColorButtonGetColor(b,color) # this function should change 'color'     message('after gtkColorButtonGetColor()... on my m...