It initializes GObject and the trayicon module, and then registers the classes with Python.
它初始化gobject和trayicon模块,然后向Python注册这些类。
You may be wondering exactly how calling a GObject method differs from calling a simple C function.
您可能会感到疑惑:调用GObject方法与调用简单的C 函数到底有何区别?
GObject Reference manual: Read this manual to learn more about the object-oriented library used by GStreamer.
GObject参考手册:阅读该手册,以了解关于GStreamer所使用的面向对象库的更多信息。
Now, we'll take a look inside the Glib object system and explore some foundational GObject programming concepts.
现在,我们将深入研究Glib对象系统并探究一些基本的GObject编程概念。
The techniques here can be applied many times to different objects, allowing you to use any GObject you find in Python.
这里的技术可以多次应用于不同对象,允许您使用在Python中找到的任何GObject。
It is composed of a pointer to the GObject that the method is being called on, an array of arguments, and an array of keyword arguments.
它由正在对其调用方法的GObject的指针、参数数组和关键字参数数组组成。
GStreamer is written in c, but it USES the same GObject library known from the GTK + toolkit to get object-oriented features (see the Resources section).
GStreamer是使用c进行编写的,但是它使用了来自GTK +工具包的gobject库,以获得面向对象的特性(请参见参考资料部分)。
Now that we've taken a look at GObject fundamentals, you should be equipped with the necessary fundamental concepts to begin your GNOME programming career.
既然我们研究了GObject基础知识,您应当已经掌握必要的基本概念,可以开始您的GNOME编程生涯了。
However, don't let this fact fool you into thinking that GObject OOP programming is just a bunch of hokey technojargon for good old-fashioned C programming.
但是,别让这个事实愚弄了您,让您误以为 GObjectOOP编程只是将良好的旧式C 编程进行了一番改头换面。
The GLabel class is only one of many subclasses of the GObject class, which is defined in the acm.graphics package to represent the universe of graphical objects.
graphics包中的GLabel类只是GObject众多子类中的一个,它被用来表示通常的图形对象。
This article describes how to wrap a C-coded GObject (the ultimate base class of all GTK + widgets and many related objects), so that it can be used from Python code.
本文将描述如何封装用c编码的GObject(所有gtk +窗口小部件和许多相关对象的最终基类),以便可以从Python代码使用它。
GObject does do a lot of stuff behind the scenes, allowing you to create subclasses of existing classes, interfaces to classes (which we will discuss later in this article) and more.
GObject在幕后确实作了许多工作,允许您创建现有类的子类、创建类的接口(我们将在本文的后面对此进行讨论)等等。
It is expected that GNOME will create wrappers around D-BUS using GObject (indeed these partially exist, integrating D-BUS into their event loop), and that KDE will create similar wrappers using Qt.
预期,GNOME将使用GObject创建包装d -BUS的包装器(实际上这些已经部分存在了,将D - BUS集成入它们的事件循环),KDE将使用Qt创建类似的包装器。
It is expected that GNOME will create wrappers around D-BUS using GObject (indeed these partially exist, integrating D-BUS into their event loop), and that KDE will create similar wrappers using Qt.
预期,GNOME将使用GObject创建包装d -BUS的包装器(实际上这些已经部分存在了,将D - BUS集成入它们的事件循环),KDE将使用Qt创建类似的包装器。
应用推荐