如何确定当前选定的行是否是 gtk.TreeView 上的最后一行?
如果这看起来是一个微不足道的问题,我很抱歉,但我对使用 GTK Treeview 所需的视图/模型/存储方案的复杂性仍然很陌生。 如何确定当前选定的项目是否是 gtk.TreeView 上的最后一个项目? 我没有孩子,所以现在每个节点只是一行。
I am sorry if this looks a trivial question but I am still new to the complexity of the View/model/store scheme require to use the GTK Treeview.
How to identify if the current selected item is the last item on a gtk.TreeView ?
I don't have children so right now each node is just a row.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您必须询问视图选择了哪一行,然后询问模型该行是否是最后一行。就像这样:
To do that, you have to ask the view what row is selected, then ask the model whether that row is the last one. Like so: