简体   繁体   English

R tcltk:tkframe的标题

[英]R tcltk: title for a tkframe

I think this is a simple question but can't figure it out. 我认为这是一个简单的问题,但无法解决。 I'm trying to build a frame and hoping I can add a title to it. 我正在尝试构建框架,并希望可以为其添加标题。 For example, I like to create a slider in a frame. 例如,我喜欢在框架中创建一个滑块。 But to identify the frame I'd like to add a title to it. 但是要确定框架,我想为其添加标题。 I have no reputation so I can't add a picture, but something like the word "title" below: 我没有声誉,所以无法添加图片,但是下面带有“标题”一词:

--- title -------------------------------- ---标题--------------------------------

| | ===[ ]=================== | === [] ================== |

-----.----------------------------------- -----.-----------------------------------

Or: 要么:

在此处输入图片说明

How can I do it? 我该怎么做?

查看tcltk软件包中的ttklabelframe函数。

There is a package called rpanel, where somehow the frames are all titled. 有一个名为rpanel的软件包,其中的所有框架均以标题命名。 You might want to look into that one. 您可能想要研究一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM