gpt4 book ai didi

python - 更改 gtk.Paned 句柄大小

转载 作者:太空狗 更新时间:2023-10-30 02:50:37 25 4
gpt4 key购买 nike

gtk.Paned 包含一个名为“handle-size”的样式属性,我认为它会改变句柄的大小,它是只读的,那么我该如何改变它呢?(在 PyGtk 中)

最佳答案

来自 gtk.Widget 的文档:

gtk.Widget introduces style properties - these are basically object properties that are stored not on the object, but in the style object associated to the widget. Style properties are set in resource files. This mechanism is used for configuring such things as the location of the scrollbar arrows through the theme, giving theme authors more control over the look of applications without the need to write a theme engine in C.

GTK 中的一般做法是不在程序中设置样式属性,而只是使用标准的 UI 小部件并让用户决定它们的外观(通过桌面主题)。

关于python - 更改 gtk.Paned 句柄大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1701114/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com