values.Widget(tkWidgets)
values.Widget()所属R语言包:tkWidgets
Deal with Names and Values of Widget Created by widgetRender()
处理的Widget的名称和值widgetRender(创建)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functions in this group print or list the names or/and values of the widget elements on a widget created by widgetRender().
在这组打印或名单上的名字和/或对widgetRender()创建一个widget的widget元素的值的功能。
用法----------Usage----------
values.Widget(x)
参数----------Arguments----------
参数:x
A list (print.pWidget) or list of lists(print.Widget, values.Widget) that representing a widget element (list) on a widget or a widget (list of lists) generated by using the function widgetRender.
一个列表(print.pWidget)或列表(print.Widget,values.Widget),较上一个部件或一个部件(列表)使用功能widgetRender产生一个widget元素(列表)。
Details
详情----------Details----------
print.pWidget takes a list defining a widget element on a widget generated by using the function widgetREnder. An example of a valid list will be:
print.pWidget需要列表上定义使用功能widgetREnder产生一个部件一个部件元素。将是一个有效的列表的例子:
pW1 <- list(Name="AAA", Value="bbb", toText=function(x) paste(x,collapse = ","), fromText=NULL, canEdit=TRUE, buttonFun = fileBrowser, buttonText = "Browse")
PW1 < - 列表(名称=“AAA”级,值=“BBB”,toText =(X)粘贴(X,崩溃“,”),fromText = NULL,canEdit = TRUE时,buttonFun = fileBrowser buttonText =“浏览”)
print.Widget and values.Widget take a list of lists defining all the widget elements on a widget generated using the function widgetRender. An example of a valid list will be:
print.Widget和values.Widget定义上使用功能widgetRender生成一个部件的所有部件元素的列表列表。将是一个有效的列表的例子:
pW1 <- list(Name="AAA", Value="bbb", toText=function(x) paste(x,collapse = ","), fromText=NULL, canEdit=TRUE, buttonFun = fileBrowser, buttonText = "Browse")
PW1 < - 列表(名称=“AAA”级,值=“BBB”,toText =(X)粘贴(X,崩溃“,”),fromText = NULL,canEdit = TRUE时,buttonFun = fileBrowser buttonText =“浏览”)
pW2 <- list(Name="BBB", Value="x,y,z", toText=function(x) paste(x, sep=","), fromText=NULL, canEdit=TRUE, buttonFun = ls, buttonText = "List")
PW2 < - 列表(名称=“BBB”,价值=“X,Y,Z”,toText(X)=功能膏(X,SEP =“,”),fromText = NULL,canEdit = TRUE, buttonFun = LS,buttonText =“名单”)
pW3 <- list(Name="CCC", Value="ccc", toText=function(x) paste(x, collapse = ","), fromText=NULL, canEdit=TRUE, buttonFun=NULL, buttonText=NULL)
PW3 < - 列表(名称=“CCC认证”,值=“CCC”,toText =功能(X)粘贴(X,倒塌=“”),fromText = NULL,canEdit = TRUE,buttonFun = NULL buttonText = NULL)
widget1 <- list(wList = list(a = pW1, b = pW2, c = pW3), preFun = function() "Hi", postFun = function() "Bye")
widget1 < - 列表(wList =列表(= PW1,B = PW2,C = PW3),preFun =函数()“嗨”,postFun =()“细则”)
值----------Value----------
参数:returnList
values.Widget returns a list of lists each with the name and value of an entry box on the widget created.
values.Widget返回每个输入框上创建的小部件的名称和值的列表列表。
作者(S)----------Author(s)----------
Jianhua (John) Zhang
参见----------See Also----------
widgetRender
widgetRender
举例----------Examples----------
# Create the lists and list of lists[创建列表的列表和列表]
pW1 <- list(Name="AAA", Value="bbb",
toText=function(x) paste(x,collapse = ","),
fromText=NULL, canEdit=TRUE, buttonFun = fileBrowser,
buttonText = "Browse")
pW2 <- list(Name="BBB", Value="x,y,z", toText=function(x) paste(x, sep=","),
fromText=NULL, canEdit=TRUE, buttonFun = ls,
buttonText = "List")
pW3 <- list(Name="CCC", Value="ccc",
toText=function(x) paste(x, collapse = ","),
fromText=NULL, canEdit=TRUE, buttonFun=NULL,
buttonText=NULL)
widget1 <- list(wList = list(a = pW1, b = pW2, c = pW3),
preFun = function() "Hi",
postFun = function() "Bye")
# Define the classes[定义类]
class(pW1) <- c("pWidget", "textbox")
class(widget1) <- "Widget"
# Call the funcitons[呼叫的funcitons]
print.pWidget(pW1)
print.Widget(widget1)
values.Widget(widget1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|