✏️ 编辑:gi_service.cpython-39.pyc
路径:
/usr/lib64/python3.9/site-packages/dbus/__pycache__/gi_service.cpython-39.pyc
大小:1.91 KB · 修改:2022-01-29 18:37:31 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a � z]� � @ sf d Z dgZddlmZ ddlZG dd� dejjejj�Z ddd�Z d Ze dejejjfe ed ��Z dS )z6Support code for implementing D-Bus services via PyGI.�ExportedGObject� )�GObjectNc @ s e Zd ZdZdd� ZdS )�ExportedGObjectTypez�A metaclass which inherits from both GObjectMeta and `dbus.service.InterfaceType`. Used as the metaclass for `ExportedGObject`. c C s, t j j�| |||� tjj�| |||� d S )N)r � __class__�__init__�dbus�service� InterfaceType)�cls�name�basesZdct� r �5/usr/lib64/python3.9/site-packages/dbus/gi_service.pyr . s zExportedGObjectType.__init__N)�__name__� __module__�__qualname__�__doc__r r r r r r * s r c K sX |� dd�}|� dd�}|dur*|�|� tjj| fi |�� tjjj| |||d� dS )a: Initialize an exported GObject. :Parameters: `conn` : dbus.connection.Connection The D-Bus connection or bus `object_path` : str The object path at which to register this object. :Keywords: `bus_name` : dbus.service.BusName A bus name to be held on behalf of this object, or None. `gobject_properties` : dict GObject properties to be set on the constructed object. Any unrecognised keyword arguments will also be interpreted as GObject properties. �bus_nameN�gobject_properties)�conn�object_pathr )�pop�updater r r r �Object)�selfr r �kwargsr r r r r �ExportedGObject__init__3 s �r z' A GObject which is exported on D-Bus. )r r )NN)r �__all__Z gi.repositoryr Zdbus.servicer r r r r r ZExportedGObject__doc__r r r r r r �<module> s ��
💾 保存
取消
保存为 UTF-8,换行统一为 LF