Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/gi/overrides/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyc


,Oc@sddlmZddlmZddlmZddlZedjZgZ	dej
fdYZ
ee
Z
e	jdd	ejfd
YZeeZe	jd	dddYZ
d
ejfdYZeeZe	jd
dS(i(toverride(tmodulesi(tGLibNtGiotFileEnumeratorcBs eZdZdZeZRS(cCs|S(N((tself((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__iter__!scCs)|jd}|dk	r|StdS(N(t	next_filetNonet
StopIteration(Rt	file_info((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__next__$s(t__name__t
__module__RRtnext(((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyR s			tSettingscBsYeZdZdddZdZdZdZeZdZ	dZ
dZRS(	s0Provide dictionary-like access to GLib.Settings.c	Ks)tjj|d|d|d||dS(Ntschematbackendtpath(RRt__init__(RRRRtkwargs((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyR6scCs||jkS(N(t	list_keys(Rtkey((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__contains__9scCst|jS(N(tlenR(R((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__len__<scCstS(N(tTrue(R((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__bool__?scCs5||kr"td|fn|j|jS(Nsunknown key: %r(tKeyErrort	get_valuetunpack(RR((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__getitem__GscCs||kr"td|fn|j|}|jdj}|jd}|dkr|jdj}|jdst|d}ntdt||j	|t
j||dS(Nsunknown key: %riittypetas&Cannot handle allowed type range class(Rt	get_rangetget_child_valuet
get_stringtget_type_stringt
startswithtAssertionErrortNotImplementedErrortstrt	set_valueRtVariant(RRtvaluetrangettype_tvttype_str((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__setitem__Ns
cCs
|jS(N(R(R((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pytkeysasN(RR
t__doc__RRRRRt__nonzero__RR1R2(((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyR3s					t_DBusProxyMethodCallcBs8eZdZdZdZdZedZRS(s1Helper class to implement DBusProxy method calls.cCs||_||_dS(N(t
dbus_proxytmethod_name(RR6R7((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyRjs	c
Cs|\}}}y|j|}WnQtk
rutjd \}}	|ra|||	|n|||	|dSX|||j||dS(Ni(tcall_finisht	Exceptiontsystexc_infot_unpack_result(
Rtobjtresultt	user_datatresult_callbackterror_callbacktreal_user_datatrettetypete((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__async_result_handlerns
cOs|r?|d}|d}t|tsEtd|qEnd}tj|t|}d|kr|d|jd|jdf}|jj|j	||jdd|jd	d
d|j|nF|jj|j	||jdd|jd	d
d}|j
|SdS(Niis6first argument must be the method signature string: %rs()tresult_handlert
error_handlerR?tflagsttimeouti(t
isinstanceR)t	TypeErrorRR+ttupletgetR6tcallR7Rt*_DBusProxyMethodCall__async_result_handlert	call_syncR<(RtargsRt	signaturetarg_variantR?R>((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__call__}s 

!'cCsJ|j}t|dkr+|d}nt|dkrFd}n|S(s?Convert a D-BUS return variant into an appropriate return valueiiN(RRR(tklassR>((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyR<s
	(RR
R3RRPRUtclassmethodR<(((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyR5gs
			t	DBusProxycBseZdZdZRS(s,Provide comfortable and pythonic method calls.
    
    This marshalls the method arguments into a GVariant, invokes the
    call_sync() method on the DBusProxy object, and unmarshalls the result
    GVariant back into a Python tuple.

    The first argument always needs to be the D-Bus signature tuple of the
    method call. Example:

      proxy = Gio.DBusProxy.new_sync(...)
      result = proxy.MyMethod('(is)', 42, 'hello')

    The exception are methods which take no arguments, like
    proxy.MyMethod('()'). For these you can omit the signature and just write
    proxy.MyMethod().

    Optional keyword arguments:

    - timeout: timeout for the call in milliseconds (default to D-Bus timeout)

    - flags: Combination of Gio.DBusCallFlags.*

    - result_handler: Do an asynchronous method call and invoke
         result_handler(proxy_object, result, user_data) when it finishes.

    - error_handler: If the asynchronous call raises an exception,
      error_handler(proxy_object, exception, user_data) is called when it
      finishes. If error_handler is not given, result_handler is called with
      the exception object as result instead.
    
    - user_data: Optional user data to pass to result_handler for
      asynchronous calls.

    Example for asynchronous calls:

      def mymethod_done(proxy, result, user_data):
          if isinstance(result, Exception):
              # handle error
          else:
              # do something with result

      proxy.MyMethod('(is)', 42, 'hello',
          result_handler=mymethod_done, user_data='data')
    cCs
t||S(N(R5(Rtname((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt__getattr__s(RR
R3RZ(((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyRXs,((t	overridesRtimporterRt
gi.repositoryRR:t_introspection_moduleRt__all__RtappendRR5RX(((s4/usr/lib/python2.7/dist-packages/gi/overrides/Gio.pyt<module>s

1
?0