How do I change the property of a GTK widget such as a stack?

三世轮回 提交于 2019-12-01 07:39:17

Slight but important distinction: the icon-name isn't a "property" of the child of a GtkStack, it's a "child property" of GtkStack.

The difference is that a "child property" affects the relation between a container and one of its child widgets, rather than just the container or just the child widget.

Use this:

stack.child_set_property(child, 'icon-name', 'go-previous')
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!