简体   繁体   English

在 gtk textview 中更改字体

[英]Change font in gtk textview

Is it possible to change a font in gtk textview without using css in python?是否可以在 python 中不使用 css 的情况下更改 gtk textview 中的字体?

I tried using override_font and modify_font but it shows depreciation warning.我尝试使用override_fontmodify_font但它显示折旧警告。

It shows a deprecation warning because you're supposed to use CSS to do this.它显示了弃用警告,因为您应该使用 CSS 来执行此操作。 You either have to use CSS or ignore the deprecation warning.您要么必须使用 CSS,要么忽略弃用警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM