我知道这听起来非常简单,但我没能将两个字符串组合成一个新字符串.
来自gtk条目的IO字符串"a"由提取
a <- (entryGetText text_field)
Run Code Online (Sandbox Code Playgroud)
目标是结合它:
newstring ="文字:"+ a
有什么想法可以实现吗?谢谢!
这就是我当前从glade文件初始化Tree视图的方法(删除了不感兴趣的部分)
tree_view <- xmlGetWidget xml castToTreeView "tree_view"
Run Code Online (Sandbox Code Playgroud)
为了方便起见,我如何使用已填充文本字段中的文本向tree_view添加新条目?
text <- get text_field entryText
Run Code Online (Sandbox Code Playgroud)
愿有人帮帮我吗?
谢谢