找回密码
 注册
查看: 1733|回复: 0

R语言:TkCommands()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:38:00 | 显示全部楼层 |阅读模式
TkCommands(tcltk)
TkCommands()所属R语言包:tcltk

                                        Tk non-widget commands
                                         Tk的非部件的命令

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These functions interface to Tk non-widget commands, such as the window manager interface commands and the geometry managers.
这些功能接口Tk的非部件的命令,如窗口管理器界面命令和几何经理。


用法----------Usage----------


tcl(...)
tktitle(x)

tktitle(x) <- value

tkbell(...)
tkbind(...)
tkbindtags(...)
tkfocus(...)
tklower(...)
tkraise(...)

tkclipboard.append(...)
tkclipboard.clear(...)

tkevent.add(...)
tkevent.delete(...)
tkevent.generate(...)
tkevent.info(...)

tkfont.actual(...)
tkfont.configure(...)
tkfont.create(...)
tkfont.delete(...)
tkfont.families(...)
tkfont.measure(...)
tkfont.metrics(...)
tkfont.names(...)

tkgrab(...)
tkgrab.current(...)
tkgrab.release(...)
tkgrab.set(...)
tkgrab.status(...)

tkimage.cget(...)
tkimage.configure(...)
tkimage.create(...)
tkimage.names(...)

## NB: some widgets also have a selection.clear command,
## hence the "X".

tkXselection.clear(...)
tkXselection.get(...)
tkXselection.handle(...)
tkXselection.own(...)

tkwait.variable(...)
tkwait.visibility(...)
tkwait.window(...)

## winfo actually has a large number of subcommands,
## but it's rarely used,
## so use tkwinfo("atom", ...) etc. instead.

tkwinfo(...)

# Window manager interface

tkwm.aspect(...)
tkwm.client(...)
tkwm.colormapwindows(...)
tkwm.command(...)
tkwm.deiconify(...)
tkwm.focusmodel(...)
tkwm.frame(...)
tkwm.geometry(...)
tkwm.grid(...)
tkwm.group(...)
tkwm.iconbitmap(...)
tkwm.iconify(...)
tkwm.iconmask(...)
tkwm.iconname(...)
tkwm.iconposition(...)
tkwm.iconwindow(...)
tkwm.maxsize(...)
tkwm.minsize(...)
tkwm.overrideredirect(...)
tkwm.positionfrom(...)
tkwm.protocol(...)
tkwm.resizable(...)
tkwm.sizefrom(...)
tkwm.state(...)
tkwm.title(...)
tkwm.transient(...)
tkwm.withdraw(...)


### Geometry managers

tkgrid(...)
tkgrid.bbox(...)
tkgrid.columnconfigure(...)
tkgrid.configure(...)
tkgrid.forget(...)
tkgrid.info(...)
tkgrid.location(...)
tkgrid.propagate(...)
tkgrid.rowconfigure(...)
tkgrid.remove(...)
tkgrid.size(...)
tkgrid.slaves(...)

tkpack(...)
tkpack.configure(...)
tkpack.forget(...)
tkpack.info(...)
tkpack.propagate(...)
tkpack.slaves(...)

tkplace(...)
tkplace.configure(...)
tkplace.forget(...)
tkplace.info(...)
tkplace.slaves(...)

## Standard dialogs
tkgetOpenFile(...)
tkgetSaveFile(...)
tkchooseDirectory(...)
tkmessageBox(...)
tkdialog(...)
tkpopup(...)


## File handling functions
tclfile.tail(...)
tclfile.dir(...)
tclopen(...)
tclclose(...)
tclputs(...)
tclread(...)



参数----------Arguments----------

参数:x
A window object
一个窗口对象


参数:value
For tktitle assignments, a character string.
tktitle任务,一个字符串。


参数:...
Handled via .Tcl.args
处理通过.Tcl.args


Details

详情----------Details----------

tcl provides a generic interface to calling any Tk or Tcl command by simply running .Tcl.args.objv on the argument list and passing the result to .Tcl.objv.  Most of the other commands simply call tcl with a particular first argument and sometimes also a second argument giving the subcommand.
tcl调用任何Tk或Tcl命令提供了一个通用接口只需运行.Tcl.args.objv参数列表和传递.Tcl.objv的结果。大多数其他命令简单地调用tcl与一个特定的第一个参数和第二个参数给子有时也。

tktitle and its assignment form provides an alternate interface to Tk's wm title
tktitle,其转让的形式提供了一个备用接口Tk的wm title

There are far too many of these commands to describe them and their arguments in full.  Please refer to the Tcl/Tk documentation for details. With a few exceptions, the pattern is that Tk subcommands like pack configure are converted to function names like tkpack.configure, and Tcl subcommands are like tclfile.dir.  
有太多这些命令,以充分描述他们和他们的论据。请参考Tcl / Tk的文档的细节。除少数例外,该模式是TK像pack configure子被转换运作tkpack.configure的名称,和Tcl的子像tclfile.dir。


参见----------See Also----------

TclInterface, TkWidgets,
TclInterface,TkWidgets


举例----------Examples----------


## Not run: [#无法运行:]
## These cannot be run by examples() but should be OK when pasted[#这些不能运行的例子(),但粘贴时,应确定]
## into an interactive R session with the tcltk package loaded[tcltk装载包的互动R会话#]

tt <- tktoplevel()
tkpack(l1<-tklabel(tt,text="Heave"), l2<-tklabel(tt,text="Ho"))
tkpack.configure(l1, side="left")

## Try stretching the window and then[#尝试拉伸窗口,然后]

tkdestroy(tt)

## End(Not run)[#结束(不运行)]


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-23 21:25 , Processed in 0.022829 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表