gtk styles not behaving properly

南笙酒味 提交于 2020-01-14 04:42:27

问题


I was attempting to mess with the style of a Button, and noticed that my changes were making the button look strange. To make sure I was doing the right thing, I tried doing what I thought would be semantically a no-op:

button.set_style(button.get_style())

However, the button style changes dramatically after this line. I'm on Windows 7. Without this line, it looks like a regular windows 7 button - rounded, nice gradient, light-blue on highlight, etc. After the line, it looks like an ugly old Windows XP button - blocky, no gradient, and lightly colored on highlight. What gives?

来源:https://stackoverflow.com/questions/3711286/gtk-styles-not-behaving-properly

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