Add connection.py
This commit is contained in:
Родитель
6418dec86a
Коммит
10596931b2
|
@ -26,6 +26,7 @@ ibus_PYTHON = \
|
|||
application.py \
|
||||
attribute.py \
|
||||
common.py \
|
||||
connection.py \
|
||||
exception.py \
|
||||
gtk.py \
|
||||
__init__.py \
|
||||
|
|
|
@ -26,3 +26,4 @@ from common import *
|
|||
from interface import *
|
||||
from exception import *
|
||||
from lookuptable import *
|
||||
from connection import *
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus - The Input Bus
|
||||
#
|
||||
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the
|
||||
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
# Boston, MA 02111-1307 USA
|
||||
|
||||
__all__ = (
|
||||
"Connection",
|
||||
)
|
||||
import dbus.connection
|
||||
import ibus
|
||||
|
||||
class Connection (dbus.connection.Connection):
|
||||
def __init__ (self):
|
||||
dbus.connection.Connection.__init__ (ibus.IBUS_ADDR)
|
||||
|
Загрузка…
Ссылка в новой задаче