Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ‰å<_Â:ã@sìddlZddlZddlmZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%d krÈe&Z'e(Z)ne*Z'e+Z)Gdd„de,ƒZ-dd „Z.dS) éNé)Ú_gi)Ú TYPE_NONEÚTYPE_INTERFACEÚ TYPE_CHARÚ TYPE_UCHARÚ TYPE_BOOLEANÚTYPE_INTÚ TYPE_UINTÚ TYPE_LONGÚ TYPE_ULONGÚ TYPE_INT64Ú TYPE_UINT64Ú TYPE_ENUMÚ TYPE_FLAGSÚ TYPE_FLOATÚ TYPE_DOUBLEÚ TYPE_STRINGÚ TYPE_POINTERÚ TYPE_BOXEDÚ TYPE_PARAMÚ TYPE_OBJECTÚ TYPE_PYOBJECTÚ TYPE_GTYPEÚ TYPE_STRVÚ TYPE_VARIANTéc@sNeZdZdZeeeeee e e e e eeiZedededee e e eeeeed/iZeeeeed1ed3eee eeeeeiZedededededede dede di Z Gd d „d e!ƒZ"d d d d dde#j$d d f d d „Z%dd„Z&dd„Z'dd„Z(dd„Z)dd„Z*dd„Z+dd„Z,dd„Z-dd„Z.d d!„Z/d"d#„Z0d$d%„Z1d&d'„Z2d(d)„Z3d*d+„Z4d,d-„Z5d S)4ÚPropertyaÄCreates a new Property which when used in conjunction with GObject subclass will create a Python property accessor for the GObject ParamSpec. :param callable getter: getter to get the value of the property :param callable setter: setter to set the value of the property :param type type: type of property :param default: default value, must match the property type. :param str nick: short description :param str blurb: long description :param GObject.ParamFlags flags: parameter flags :keyword minimum: minimum allowed value (int, float, long only) :keyword maximum: maximum allowed value (int, float, long only) .. code-block:: python class MyObject(GObject.Object): prop = GObject.Property(type=str) obj = MyObject() obj.prop = 'value' obj.prop # now is 'value' The API is similar to the builtin :py:func:`property`: .. code-block:: python class AnotherObject(GObject.Object): value = 0 @GObject.Property def prop(self): 'Read only property.' return 1 @GObject.Property(type=int) def propInt(self): 'Read-write integer property.' return self.value @propInt.setter def propInt(self, value): self.value = value réé?ré@Úgc@seZdZdd„ZdS)zProperty.__metaclass__cCsdS)Nz©)Úselfr"r"ú'/usr/lib64/python3.6/_propertyhelper.pyÚ__repr__—szProperty.__metaclass__.__repr__N)Ú__name__Ú __module__Ú __qualname__r%r"r"r"r$Ú __metaclass__–sr)Nc Cs<d|_|dkrt}|j|ƒ|_|j|ƒ|_|jƒt|tƒsDt dƒ‚||_ t|tƒs\t dƒ‚||_ ||_ ||_ |r€| r€|j}n*|r’| r’|j}n| rª| rª|j}|j}|j|ƒ||_|dk ræ||jƒkrît d|j|jƒfƒ‚n|jƒ}||_| dk �r$| |jƒk�r,t d|j|jƒfƒ‚n|jƒ} | |_d|_dS)Nznick must be a stringzblurb must be a stringz+Minimum for type %s cannot be lower than %dz,Maximum for type %s cannot be higher than %d)ÚnameÚobjectÚ_type_from_pythonÚtypeÚ _get_defaultÚdefaultÚ_check_defaultÚ isinstanceÚ _basestringÚ TypeErrorÚnickÚblurbÚ__doc__ÚflagsÚ_readonly_setterÚ_writeonly_getterÚ_default_getterÚ_default_setterÚgetterÚfsetÚ _get_minimumÚminimumÚ _get_maximumÚmaximumÚ_exc) r#r<Úsetterr-r/r4r5r7r?rAr"r"r$Ú__init__šsL          zProperty.__init__cCsd|jp dtj|jƒfS)Nzz(uninitialized))r*rZ type_namer-)r#r"r"r$r%ÒszProperty.__repr__c Cs\|dkr |Sd|_y|j|ƒ}Wn tk r@tjƒd}YnX|jrX|j}d|_|‚|S)N)rBÚfgetÚ ExceptionÚ tracebackÚ print_exc)r#ÚinstanceÚklassÚvalueÚexcr"r"r$Ú__get__×s zProperty.__get__cCs:|dkr t‚d|_|j|j|ƒ|jr6|j}d|_|‚dS)N)r3rBZ set_propertyr*)r#rIrKrLr"r"r$Ú__set__ðszProperty.__set__cCs |j|ƒS)z;Allows application of the getter along with init arguments.)r<)r#rEr"r"r$Ú__call__ûszProperty.__call__cCs |jr|j|_|j|_||_|S)z8Set the getter function to fget. For use as a decorator.)r6r5rE)r#rEr"r"r$r<ÿs zProperty.gettercCs||_|js|jj|_|S)z8Set the setter function to fset. For use as a decorator.)r=r*rEr&)r#r=r"r"r$rCs zProperty.settercCsŒ||jkr|j|St|tƒrBt|tjtjtjtjtj fƒrB|j S|t t t ttttttttttttttttttt fkrz|St!d|fƒ‚dS)NzUnsupported type: %r)"Ú_type_from_pytype_lookupr1r-Ú issubclassrZGObjectZGEnumZGFlagsZGBoxedZ GInterfaceÚ __gtype__rrrrr r rr r r rrrrrrrrrrrrr3)r#Ztype_r"r"r$r,s"     zProperty._type_from_pythoncCs|dk r |S|jj|jdƒS)N)Ú_default_lookupÚgetr-)r#r/r"r"r$r.&szProperty._get_defaultcCs||j}|j}|tkr.|d kr.td|fƒ‚�nJ|tkrJ|dk rFtdƒ‚�n.|tkrf|dk rbtdƒ‚�ntj|tƒr¢|dkr„tdƒ‚ntj||ƒs td||fƒ‚nÖtj|t ƒrÌtj||ƒsÊtd||fƒ‚n¬tj|t ƒoÞ|dk �r2t |t ƒ�sþtd t |ƒƒ‚xx|D](}t|ƒttfk�rtd t|ƒƒ‚�qWnFtj|tƒ�rx|dk �rxt|d ƒ �shtj|tƒ �rxtd ||fƒ‚dS)NTFz%default must be True or False, not %rz)object types does not have default valuesz(GType types does not have default valuesz%enum properties needs a default valuez'enum value %s must be an instance of %rz(flags value %s must be an instance of %rzStrv value %s must be a listz'Strv value %s must contain only stringsrRz*variant value %s must be an instance of %r)TF)r-r/rr3rrrZ type_is_arrrr1ÚlistÚreprÚstrÚbytesrÚhasattr)r#Úptyper/Úvalr"r"r$r0+s>         zProperty._check_defaultcCs|jj|jdƒS)N)Ú_min_value_lookuprTr-)r#r"r"r$r>LszProperty._get_minimumcCs|jj|jdƒS)N)Ú_max_value_lookuprTr-)r#r"r"r$r@OszProperty._get_maximumcCst|d|j|ƒdS)NÚ_property_helper_)Úsetattrr*)r#rIrKr"r"r$r;VszProperty._default_settercCst|d|j|jƒS)Nr^)Úgetattrr*r/)r#rIr"r"r$r:YszProperty._default_gettercCstd|jt|ƒjfƒ|_dS)Nz%s property of %s is read-only)r3r*r-r&rB)r#rIrKr"r"r$r8\szProperty._readonly_settercCstd|jt|ƒjfƒ|_dS)Nz%s property of %s is write-only)r3r*r-r&rB)r#rIr"r"r$r9`szProperty._writeonly_getterc Cs¸|j}|ttttttttfkr0|j |j |j f}nl|t ks^|t ks^|jtƒs^|jtƒs^|jtƒrh|j f}n4|ttfkrzf}n"|jtƒsŽ|jtƒr”f}nt|ƒ‚|j|j|jf||jfS)N)r-r r r r r rrrr?rAr/rrZis_arrrrrrrÚNotImplementedErrorr4r5r7)r#rZÚargsr"r"r$Úget_pspec_argshs    zProperty.get_pspec_argsllûÿÿÿllÿÿÿÿllÿÿÿÿ)6r&r'r(r6Ú_longr Úintr ÚboolrÚfloatrrWrr+rrPr r rrÚ G_MAXFLOATÚ G_MAXDOUBLEÚG_MININTÚ G_MINLONGr r\Ú G_MAXUINTÚ G_MAXULONGÚG_MAXINTÚ G_MAXLONGr]rSr-r)rZPARAM_READWRITErDr%rMrNrOr<rCr,r.r0r>r@r;r:r8r9rcr"r"r"r$r2sh66   !rcsˆjjdiƒ}g}xpˆjjƒD]b\}}t|tƒr|js<||_|j|krh||j|jƒkrZqtd|jƒ‚|jƒ||j<|j|ƒqW|sŒdS|ˆ_ dˆjks¦dˆjkrÜx4|D],}|j |j ksÈ|j |j kr¬tdˆjfƒ‚q¬Wdd„}|ˆ_‡fd d „}|ˆ_dS) z“ Scans the given class for instances of Property and merges them into the classes __gproperties__ dict if it exists or adds it if not. Ú__gproperties__z0Property %s was already found in __gproperties__NÚdo_get_propertyÚdo_set_propertyzGObject subclass %r defines do_get/set_property and it also uses a property with a custom setter or getter. This is not allowedcSs|jjddƒ}t||dƒS)Nú-Ú_)r*Úreplacer`)r#Úpspecr*r"r"r$Úobj_get_property¡sz,install_properties..obj_get_propertycs.|jjddƒ}tˆ|dƒ}|r*|j||ƒdS)Nrsrt)r*rur`r=)r#rvrKr*Úprop)Úclsr"r$Úobj_set_property¦s z,install_properties..obj_set_property)Ú__dict__rTÚitemsr1rr*rcÚ ValueErrorÚappendrprEr:r=r;r3r&rqrr)ryZ gpropertiesZpropsr*rxrwrzr")ryr$Úinstall_properties{s2    r)rr)/ÚsysrGr!rZ _constantsrrrrrr r r r r rrrrrrrrrrrrrrrhrirjrnrlrkrormÚ version_inforWr2rerdZ basestringZlongr+rrr"r"r"r$Ús( h K