简体   繁体   English

新的GTK ListBox小部件在gnome-control-center中与python一起使用

[英]New GTK ListBox widget used in gnome-control-center with python

I want to use the new GTKListBox and GTKListBoxRow used by Gnome in their Control Center using python 3 and gobject. 我想在Gnome的控制中心中使用python 3和gobject使用新的GTKListBox和GTKListBoxRow。

Here's a picture of the widgets I'm talking about: 这是我正在谈论的小部件的图片:

Gnome控制中心GTK列表框

Looking the code I figured it out that the widgets were that ones, but maybe I'm mistaken. 查看代码,我发现这些小部件就是这些小部件,但也许我弄错了。

Any way I could use them? 我可以使用它们吗?

Thanks 谢谢

They're just normal GtkWidgets so you shouldn't have a problem using them. 它们只是普通的GtkWidgets,因此使用它们应该没有问题。 However they are new in Gtk 3.10 which will have a stable release towards the 23 September . 但是,它们是Gtk 3.10中的新功能,它将在9月23日之前稳定发布。 In the mean time you can build it from the git sources or if you're lucky your distribution might have some development packages (eg arch linux has the gtk3-git in the aur) If you decide to build it yourself I'd recommend using jhbuild as once you've set it up it makes it easy to stay up to date with the latest git changes. 同时,您可以从git来源构建它,或者如果您幸运的话,您的发行版可能包含一些开发包(例如arch linux在aur中具有gtk3-git)如果您决定自己构建它,我建议使用设置好jhbuild后,它可以很容易地与最新的git更改保持同步 The documentation for the development version of gtk is available online gtk开发版本的文档可在线获得

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

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