与父母的孩子沟通
我正在尝试编写一个具有以下结构的 GUI(仅相关部分):
窗口->垂直框-> H盒->框架:输入
-> ScrolledWindow -> TreeView -> ListStore: Output
一旦接收到输入,我们就会计算出一个列表,即输出。如何将此列表发送到 ListStore 以便显示它?我是否需要在每个元素中拖动父元素的引用?或者有更简单的方法吗?
I'm trying to write a GUI with the following structure (only relevant parts):
Window -> VBox -> HBox -> Frame: Input
-> ScrolledWindow -> TreeView -> ListStore: Output
As soon as the input is received, a list will we computed that is the output. How do I send this list to the ListStore so that it will be displayed? Do I need to drag references of the parent element along in every element? Or is there an easier way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以保留输入和输出的引用,然后执行以下操作:
也许有更好的方法来做到这一点(使用 Var 类?),但这就是我要做的。
You can just keep references of your input and your output, then do the following:
There maybe a better way to do it (using Var classes?) but that's how I would do it.