MINI MINI MANI MO

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

ó
§Zc@s3ddlmZmZddlmZddlmZddlZedƒZgZ	dej
fd„ƒYZ
ee
ƒZ
e	jdƒd	ejfd
„ƒYZeeƒZe	jd	ƒdej
fd„ƒYZ
ee
ƒZ
e	jdƒd
dd„ƒYZdejfd„ƒYZeeƒZe	jdƒdS(i(toverridetdeprecated_init(tget_introspection_moduleiÿÿÿÿ(tGLibNtGiotFileEnumeratorcBs eZd„Zd„ZeZRS(cCs|S(N((tself((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__iter__"scCs)|jdƒ}|dk	r|St‚dS(N(t	next_filetNonet
StopIteration(Rt	file_info((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__next__%s(t__name__t
__module__RRtnext(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyR!s			tMenuItemcBseZd„ZRS(cCs:x3|D]+\}}}|j|tj||ƒƒqWdS(N(tset_attribute_valueRtVariant(Rt
attributestnamet
format_stringtvalue((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt
set_attribute6s(R
RR(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyR5stSettingscBsbeZdZeejjddƒZd„Zd„Zd„Z	e	Z
d„Zd	„Zd
„Z
RS(s0Provide dictionary-like access to GLib.Settings.t	arg_namestschematpathtbackendcCs||jƒkS(N(t	list_keys(Rtkey((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__contains__EscCst|jƒƒS(N(tlenR(R((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__len__HscCstS(N(tTrue(R((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__bool__KscCs5||kr"td|fƒ‚n|j|ƒjƒS(Nsunknown key: %r(tKeyErrort	get_valuetunpack(RR((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__getitem__SscCsP||kr"td|fƒ‚n|j|ƒ}|jdƒjƒ}|jdƒ}|dkr˜|jdƒjƒ}|jdƒs‹t‚|d}n˜|dkr|jdƒjƒjdƒsÈt‚|jdƒjdƒjƒ}|jƒ}||kr0td||fƒ‚q0nt	dt
|ƒƒ‚|j|tj
||ƒƒdS(	Nsunknown key: %riittypetatenums$value %s is not an allowed enum (%s)s'Cannot handle allowed type range class (R$t	get_rangetget_child_valuet
get_stringtget_type_stringt
startswithtAssertionErrorR&t
ValueErrortNotImplementedErrortstrt	set_valueRR(RRRtrangettype_tvttype_strtallowed((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__setitem__Zs"
$cCs
|jƒS(N(R(R((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pytkeysts(RspathR(R
Rt__doc__RRRt__init__RR!R#t__nonzero__R'R:R;(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyR?s						t_DBusProxyMethodCallcBs8eZdZd„Zd„Zd„Zed„ƒZRS(s1Helper class to implement DBusProxy method calls.cCs||_||_dS(N(t
dbus_proxytmethod_name(RR@RA((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyR=~s	c
Cs“|\}}}y|j|ƒ}WnQtk
rutjƒd \}}	|ra|||	|ƒn|||	|ƒdSX|||j|ƒ|ƒdS(Ni(tcall_finisht	Exceptiontsystexc_infot_unpack_result(
Rtobjtresultt	user_datatresult_callbackterror_callbacktreal_user_datatrettetypete((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__async_result_handler‚s
cOs|r?|d}|d}t|tƒsEtd|ƒ‚qEnd}tj|t|ƒƒ}d|krÑ|d|jdƒ|jdƒf}|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_handlerRItflagsttimeoutiÿÿÿÿ(t
isinstanceR3t	TypeErrorRRttupletgetR@tcallRAR	t*_DBusProxyMethodCall__async_result_handlert	call_syncRF(Rtargstkwargst	signaturetarg_variantRIRH((s6/usr/lib64/python2.7/site-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(R&R R	(tklassRH((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyRF®s
	(R
RR<R=RZR`tclassmethodRF(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyR?{s
			t	DBusProxycBseZdZd„ZRS(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(R?(RR((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt__getattr__ës(R
RR<Rd(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyRc¾s,((t	overridesRRtmoduleRt
gi.repositoryRRDRt__all__RtappendRRR?Rc(((s6/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyt<module>s$

8
C0

OHA YOOOO