R/createChbEntry.R

Defines functions createChbEntry

Documented in createChbEntry

createChbEntry <-
function(ind, elements,prefix = "scbValue", envir = KTSEnv,
         dCh = "0", dEn = "") {
  
  cbValueind <- paste0(prefix, ind)
  assign(cbValueind, tcltk::tclVar(dCh), envir = envir)
  tsChbind <- tcltk::tkcheckbutton(KTSEnv$subPanR4C1, 
                                   text = elements[ind], 
                                   variable = get(cbValueind, envir = envir))
  tEntcbValueind <- paste0("tEnt", prefix, ind)
  assign(tEntcbValueind, tcltk::tclVar(dEn), envir = KTSEnv)
  tstEntind <- tcltk2::tk2entry(KTSEnv$subPanR4C1, 
                                textvariable = get(tEntcbValueind, 
                                                   envir = envir))
  tcltk::tkgrid(tsChbind, tstEntind, sticky = "nw")
  "Done"
}

Try the KarsTS package in your browser

Any scripts or data that you put into this service are public.

KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.