posix.py
来自「skype的API」· Python 代码 · 共 35 行
PY
35 行
'''Low level Skype for Linux interface.This module handles the options that you can pass to L{ISkype.__init__<skype.ISkype.__init__>} for Linux machines.The options include:@newfield option: Option, Options@option: C{Transport} (str) - A transport is a channel used to communicate with Skype client. Currently supported values are: - C{'x11'} Uses X11 (libX) messaging. This is the default if no transport is specified. Look into L{Skype4Py.API.posix_x11} for additional options. - C{'dbus'} Uses DBus (python-dbus). Look into L{Skype4Py.API.posix_dbus} for additional options.'''from Skype4Py.errors import ISkypeAPIErrordef _ISkypeAPI(handler, opts): trans = opts.pop('Transport', 'x11') if trans == 'dbus': from posix_dbus import _ISkypeAPI elif trans == 'x11': from posix_x11 import _ISkypeAPI else: raise ISkypeAPIError('Unknown transport: %s' % trans) return _ISkypeAPI(handler, opts)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?