/usr/lib/python3.9/site-packages/gi/overrides/__pycache__
NameSizeModeActions
Gdk.cpython-39.opt-1.pyc115210644editdlrm
Gdk.cpython-39.pyc115210644editdlrm
GdkPixbuf.cpython-39.opt-1.pyc10540644editdlrm
GdkPixbuf.cpython-39.pyc10540644editdlrm
GIMarshallingTests.cpython-39.opt-1.pyc18100644editdlrm
GIMarshallingTests.cpython-39.pyc18100644editdlrm
Gio.cpython-39.opt-1.pyc159140644editdlrm
Gio.cpython-39.pyc159770644editdlrm
GLib.cpython-39.opt-1.pyc226610644editdlrm
GLib.cpython-39.pyc226810644editdlrm
GObject.cpython-39.opt-1.pyc171920644editdlrm
GObject.cpython-39.pyc172060644editdlrm
Gtk.cpython-39.opt-1.pyc553250644editdlrm
Gtk.cpython-39.pyc553460644editdlrm
keysyms.cpython-39.opt-1.pyc9430644editdlrm
keysyms.cpython-39.pyc9430644editdlrm
Pango.cpython-39.opt-1.pyc15350644editdlrm
Pango.cpython-39.pyc15350644editdlrm
__init__.cpython-39.opt-1.pyc106260644editdlrm
__init__.cpython-39.pyc106660644editdlrm
Edit: /usr/lib/python3.9/site-packages/gi/overrides/__pycache__/Gtk.cpython-39.pyc (55346B)
a ЦT`©óc@sÀ ddlZddlZddlmZddlmZmZddlmZm Z ddl m Z m Z m Z mZddlmZddlmZed ƒZejd kZejd kZejd kZgZeZe d ¡e Z e d¡erÆdZe ee¡Gdd„deƒZe d¡dd„Ze d¡dd„ZGdd„de ƒZ!Gdd„dej"ƒZ"e e"ƒZ"e d¡e�s:e�rbGdd„dej#e"ƒZ#e e#ƒZ#e d¡ne Z#Gdd„dej$ƒZ$e e$ƒZ$e d¡e�s–e�r&Gdd„dej%ƒZ%e e%ƒZ%e d¡Gd d!„d!ej&ƒZ&e e&ƒZ&e d!¡Gd"d#„d#ej'ƒZ'e e'ƒZ'e d#¡Gd$d%„d%ej(ƒZ(e e(ƒZ(e d%¡Gd&d'„d'ej)e#ƒZ)e e)ƒZ)e d'¡e�sXe�r|Gd(d)„d)ej*ƒZ*e e*ƒZ*e d)¡e�sˆe�r¬Gd*d+„d+ej+ƒZ+e e+ƒZ+e d+¡e�s¸e�rÜGd,d-„d-ej,ƒZ,e e,ƒZ,e d-¡d.d/„Z-Gd0d1„d1ej.ƒZ.e e.ƒZ.e d1¡e�rej/j0Z1ne ej/j0d2ed3d4�Z1Gd5d6„d6ej/ƒZ/e e/ƒZ/e d6¡Gd7d8„d8ej2e#ƒZ2e e2ƒZ2e d8¡e�s‚e�r¨Gd9d:„d:ej3e2ƒZ3e e3ƒZ3e d:¡e�s´e�rüGd;d<„d„d>ej5ƒZ5e e5ƒZ5e d>¡e�se�r,Gd?d@„d@ej6ƒZ6e e6ƒZ6e d@¡e�s8e�r\GdAdB„dBej7ƒZ7e e7ƒZ7e dB¡GdCdD„dDej8ƒZ8e e8ƒZ8e dD¡e�sŒe�r°GdEdF„dFej9ƒZ9e e9ƒZ9e dF¡GdGdH„dHej:ƒZ:e e:ƒZ:e dH¡GdIdJ„dJej;ƒZ;e e;ƒZ;e dJ¡GdKdL„dLej<ƒZƒZ>e e>ƒZ>e dP¡GdQdR„dRej?ƒZ?e e?ƒZ?e dR¡e�s”e�r¸GdSdT„dTej@ƒZ@e e@ƒZ@e dT¡GdUdV„dVejAe>e?ƒZAe eAƒZAe dV¡GdWdX„dXe ƒZBe dX¡GdYdZ„dZe ƒZCe dZ¡Gd[d\„d\ejDƒZDe eDƒZDe d\¡Gd]d^„d^ejEe>e?ƒZEe eEƒZEe d^¡Gd_d`„d`ejFe#ƒZFe eFƒZFe d`¡Gdadb„dbejGƒZGe eGƒZGe db¡Gdcdd„ddejHƒZHe eHƒZHe dd¡e�sÚe�rHGdedf„dfejIe#ƒZIe eIƒZIe df¡Gdgdh„dhejJƒZJe eJƒZJe dh¡Gdidj„djejKƒZKe eKƒZKe dj¡Gdkdl„dlejLƒZLe eLƒZLe dl¡e�sxe�rÂGdmdn„dnejMe#ƒZMe eMƒZMe dn¡Gdodp„dpejNƒZNe eNƒZNe dp¡e�sÎe�rGdqdr„drejOƒZOe eOƒZOe dr¡Gdsdt„dtejPƒZPe ePƒZPe dt¡e�s"e�rFGdudv„dvejQƒZQe eQƒZQe dv¡e�sRe�r¾Gdwdx„dxejRƒZRe eRƒZRe dx¡Gdydz„dzejSƒZSe eSƒZSe dz¡Gd{d|„d|ejTƒZTe eTƒZTe d|¡Gd}d~„d~ejUƒZUe eUƒZUe d~¡e� r Gdd€„d€ejVƒZVe eVƒZVe d€¡e� r6Gd�d‚„d‚ejWƒZWe eWƒZWe d‚¡e� sBe� rrejXZYe ejXƒdƒd„„ƒZXejZZ[e ejZƒd…d†„ƒZZe� s~e� r’e ej\ƒZ\e d‡¡e� r¢e ]¡Z^ne ]ej_¡\Z^Z_e`e_ƒe__dS)ˆéN)ÚGObjecté)Úwakeup_on_signalÚregister_sigint_fallback)ÚTemplateÚ_extract_handler_and_args)ÚoverrideÚstrip_boolean_resultÚdeprecated_initÚwrap_list_store_sort_func)Úget_introspection_module)ÚPyGIDeprecationWarningÚGtkz2.0z3.0z4.0rraBYou have imported the Gtk 2.0 module. Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail. As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0c@s eZdZdS)ÚPyGTKDeprecationWarningN)Ú__name__Ú __module__Ú __qualname__©rrú4/usr/lib/python3.9/site-packages/gi/overrides/Gtk.pyr<srcCs4g}|D]&}t|tjƒs$tjj|Ž}| |¡q|S)zÝCreate a list of TargetEntry items from a list of tuples in the form (target, flags, info) The list can also contain existing TargetEntry items in which case the existing entry is re-used in the return list. )Ú isinstancer Z TargetEntryÚnewÚappend)ÚtargetsÚtarget_entriesZentryrrrÚ_construct_target_listCs    rc Csˆt||ƒ\}}|tjj@} |durV| r>|j|||g|¢RŽq„|j|||g|¢RŽn.| rp|j||g|¢RŽn|j||g|¢RŽdS©N)rrZ ConnectFlagsZAFTERZconnect_object_afterZconnect_objectZ connect_afterÚconnect) ZbuilderZgobjZ signal_nameZ handler_nameZ connect_objÚflagsÚ obj_or_mapZhandlerÚargsZafterrrrÚ_builder_connect_callbackTs rc@s$eZdZdd„Zdd„Zdd„ZdS)Ú_FreezeNotifyManagercCs ||_dSr)Úobj)Úselfr!rrrÚ__init__esz_FreezeNotifyManager.__init__cCsdSrr©r"rrrÚ __enter__hsz_FreezeNotifyManager.__enter__cCs|j ¡dSr)r!Zthaw_child_notify)r"Zexc_typeZ exc_valueZ tracebackrrrÚ__exit__ksz_FreezeNotifyManager.__exit__N)rrrr#r%r&rrrrr dsr cs~eZdZeejjƒZer(dd„Zdd„Z e s0e r<‡fdd„Z e sDe rP‡fdd„Z e sXe rd‡fd d „Ze sle rvdd d „Z‡ZS)ÚWidgetcCs |t|ƒvSr)Úlist©r"ÚchildrrrÚ __contains__tszWidget.__contains__ccs | ¡}|r|V| ¡}qdSr)Zget_first_childZget_next_siblingr)rrrÚ__iter__wszWidget.__iter__cstt|ƒ ¡t|ƒSr)Úsuperr'Úfreeze_child_notifyr r$©Ú __class__rrr.~szWidget.freeze_child_notifycs8|dur$t|tjƒs$tj t|ƒ¡}tt|ƒ |¡dSr)rr Ú TargetListrrr-r'Údrag_dest_set_target_list©r"Z target_listr/rrr2ƒsz Widget.drag_dest_set_target_listcs8|dur$t|tjƒs$tj t|ƒ¡}tt|ƒ |¡dSr)rr r1rrr-r'Údrag_source_set_target_listr3r/rrr4‰sz"Widget.drag_source_set_target_listNcCsN|dur6| |¡}|dur*td||fƒ‚t |j¡}tj |||¡| ¡S)Nz/Class "%s" does not contain style property "%s") Zfind_style_propertyÚ ValueErrorrÚValueÚ value_typer r'Ústyle_get_propertyÚ get_value)r"Ú property_nameÚvalueÚproprrrr8�s ÿ zWidget.style_get_property)N)rrrrr r'Ztranslate_coordinatesÚGTK4r+r,ÚGTK2ÚGTK3r.r2r4r8Ú __classcell__rrr/rr'os    r'c@sVeZdZdd„Zdd„Zdd„Zdd„ZeZdd d „Zd d „Z dd„Z e e j jƒZd S)Ú ContainercCs t| ¡ƒSr)ÚlenÚ get_childrenr$rrrÚ__len__¢szContainer.__len__cCs || ¡vSr)rCr)rrrr+¥szContainer.__contains__cCs t| ¡ƒSr)ÚiterrCr$rrrr,¨szContainer.__iter__cCsdS©NTrr$rrrÚ__bool__«szContainer.__bool__NcCsP|dur6| |¡}|dur*td||fƒ‚t |j¡}tj ||||¡| ¡S)Nz/Class "%s" does not contain child property "%s") Zfind_child_propertyr5rr6r7r rAÚchild_get_propertyr9)r"r*r:r;r<rrrrH±s ÿ zContainer.child_get_propertycs‡‡fdd„|DƒS)z¾óz'Container.child_get..r)r"r*Z prop_namesrrKrÚ child_get¼szContainer.child_getcKs0| ¡D]"\}}| dd¡}| |||¡qdS)z=Set a child properties on the given child to key/value pairs.Z_z-N)ÚitemsZreplaceZchild_set_property)r"r*ÚkwargsrJr;rrrÚ child_setÀs zContainer.child_set)N)rrrrDr+r,rGÚ __nonzero__rHrNrQrr rAZget_focus_chainrrrrrA s rAcs,eZdZ‡fdd„Zeejjdd�Z‡ZS)ÚEditablecstt|ƒ |d|¡S©Néÿÿÿÿ)r-rSÚ insert_text)r"ÚtextÚpositionr/rrrVÐszEditable.insert_textr©Zfail_ret) rrrrVrr rSÚget_selection_boundsr@rrr/rrSÎs rSc@seZdZeejjded�ZdS)ÚAction©rJÚlabelÚtooltipÚstock_id©Ú arg_namesÚcategoryN)rrrr r r[r#rrrrrr[Ûsþr[c@seZdZeejjded�ZdS)Ú RadioAction©rJr]r^r_r;r`N)rrrr r rcr#rrrrrrcãsþrcc@s<eZdZeejjded�Zd dd„Zd dd„Z d dd „Z dS) Ú ActionGroup)rJr`NcsNz t|ƒWnty&tdƒ‚Yn0d‡‡fdd„ }|D] }||Žq/group-name/action-name. úentries must be iterableNcsLt||||d�}|dur<ˆdur.| d|¡n| d|ˆ¡ˆ ||¡dS©Nr\Zactivate)r[rÚadd_action_with_accel)rJr_r]Ú acceleratorr^ÚcallbackÚaction©r"Ú user_datarrÚ_process_actions z0ActionGroup.add_actions.._process_action)NNNNN©rEÚ TypeError©r"ÚentriesrmrnÚerrlrÚ add_actionsðs   zActionGroup.add_actionscsNz t|ƒWnty&tdƒ‚Yn0d‡‡fdd„ }|D] }||Žq/group-name/action-name. rfNFcsXtj||||d�}| |¡|durHˆdur:| d|¡n| d|ˆ¡ˆ ||¡dSrg)r Z ToggleActionÚ set_activerrh)rJr_r]rir^rjZ is_activerkrlrrrn?s z7ActionGroup.add_toggle_actions.._process_action)NNNNNFrorqrrlrÚadd_toggle_actionss   zActionGroup.add_toggle_actionsc sšz t|ƒWnty&tdƒ‚Yn0d}d‡‡fdd„ }|D] }||g|¢RŽ}|dur@|}q@|dur–|dur–|durˆ| d|¡n| d||¡dS)a• The add_radio_actions() method is a convenience method that creates a number of gtk.RadioAction objects based on the information in the list of action entry tuples contained in entries and adds them to the action group. The entry tuples can vary in size from one to six items with the following information: * The name of the action. Must be specified. * The stock id for the action. Optional with a default value of None if a label is specified. * The label for the action. This field should typically be marked for translation, see the set_translation_domain() method. Optional with a default value of None if a stock id is specified. * The accelerator for the action, in the format understood by the gtk.accelerator_parse() function. Optional with a default value of None. * The tooltip for the action. This field should typically be marked for translation, see the set_translation_domain() method. Optional with a default value of None. * The value to set on the radio action. Optional with a default value of 0. Should be specified in applications. The value parameter specifies the radio action that should be set active. The "changed" signal of the first radio action is connected to the on_change callback (if specified and not None) and the accel paths of the actions are set to /group-name/action-name. rfNrcsBt|||||d�}tr | |¡ˆ|kr2| d¡ˆ ||¡|S)NrdT)rcr?Z join_grouprurh)Z group_sourcerJr_r]rir^Z entry_valuerk©r"r;rrrnqs   z6ActionGroup.add_radio_actions.._process_actionZchanged)NNNNr)rErpr) r"rrr;Z on_changermZ first_actionrnrsrkrrwrÚadd_radio_actionsNs   zActionGroup.add_radio_actions)N)N)NNN) rrrr r rer#rrtrvrxrrrrreësþ - 1rec@seZdZdd„Zddd„ZdS)Ú UIManagercCs*t|tƒstdƒ‚t|ƒ}tj |||¡S©Nzbuffer must be a string)rÚstrrpÚ_get_utf8_lengthr ryÚadd_ui_from_string©r"ÚbufferÚlengthrrrr}�s zUIManager.add_ui_from_stringrUcCstj |||¡Sr)r ryÚinsert_action_groupr~rrrr�•szUIManager.insert_action_groupN)rU)rrrr}r�rrrrryŒsryc@seZdZeejjƒZdS)ÚComboBoxN)rrrrr r‚Zget_active_iterrrrrr‚œsr‚c@seZdZeejjded�ZdS)ÚBox)Ú homogeneousZspacingr`N)rrrr r rƒr#rrrrrrƒ¥sþrƒc@s(eZdZeejjddejjie d�ZdS)Ú SizeGroup)Úmoder†)raZdeprecated_defaultsrbN) rrrr r r…r#Z SizeGroupModeZVERTICALrrrrrr…¯s  ýr…c@seZdZeejjded�ZdS)ÚMenuItem©r]r`N)rrrr r r‡r#rrrrrr‡ºsþr‡cCs*t|tƒsJ‚t|tƒs"| d¡}t|ƒS)Nzutf-8)rr{ZbytesZencoderB)Zstringrrrr|Ãs  r|csNeZdZer.ddlmZeƒZd ‡fdd„ Zndd„Zdd „Z d d „Z ‡Z S) ÚBuilderr)Údefine_builder_scopeNcs&tt|ƒ ¡|r"| t |¡¡dSr)r-r‰r#Z set_scopeÚ BuilderScope)r"Zscope_object_or_mapr/rrr#ÏszBuilder.__init__cCs| t|¡dS)aConnect signals specified by this builder to a name, handler mapping. Connect signal, name, and handler sets specified in the builder with the given mapping "obj_or_map". The handler/value aspect of the mapping can also contain a tuple in the form of (handler [,arg1 [,argN]]) allowing for extra arguments to be passed to the handler. For example: .. code-block:: python builder.connect_signals({'on_clicked': (on_clicked, arg1, arg2)}) N)Zconnect_signals_fullr)r"rrrrÚconnect_signalsÕs zBuilder.connect_signalscCs*t|tƒstdƒ‚t|ƒ}tj |||¡Srz)rr{rpr|r r‰Úadd_from_stringr~rrrr�ãs zBuilder.add_from_stringcCs,t|tƒstdƒ‚t|ƒ}tj ||||¡Srz)rr{rpr|r r‰Úadd_objects_from_string)r"rZ object_idsr€rrrrŽës zBuilder.add_objects_from_string)N) rrrr=Ú _gtktemplaterŠr‹r#rŒr�rŽr@rrr/rr‰Ês r‰)Útypeé)rarbÚ stacklevelc@seZdZdd„ZdS)ÚWindowcOs&ts tdƒ‚t|g|¢Ri|¤ŽdS)NzRGtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.)Ú initializedZ RuntimeErrorÚ _window_init©r"rrPrrrr#s ÿzWindow.__init__N)rrrr#rrrrr“sr“c@sdeZdZeserXdZeejj dddddœe d�Z dd „Z d d „Z e d d „ƒZe dd „ƒZdd„ZdS)ÚDialog)ÚtitleÚparentrÚbuttonsÚ_buttons_property)r˜Ú transient_forrÚ add_buttonsrš)rr�r™r›)rœrš)raÚignoreÚdeprecated_aliasesrbcOsò| ¡}tt|j|ƒƒ}| |¡d}|jtkrF|jjtjkrF|d7}| dd¡}|dur„t |t j ƒs„t j dt|d�| dd¡nd}| dd¡}|rÐt j dt|d�|t jj@r¼d |d <|t jj@rÐd |d <|j|i|¤Ž|rî|j|ŽdS) Nréršz²The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations©r’rrzÆThe "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecationsTZmodalZdestroy_with_parent)ÚcopyÚdictÚzipÚ_old_arg_namesZupdater0r—r#Úgetrr Z ButtonsTypeÚwarningsÚwarnrZpopZ DialogFlagsZMODALZDESTROY_WITH_PARENTÚ_initr�)r"rrPÚ new_kwargsZ old_kwargsr’r�rrrrr#s2  ý ý  zDialog.__init__c Os|t|jƒ�^tƒ�8tjj|g|¢Ri|¤ŽWdƒWdƒS1sP0YWdƒn1sn0YdSr)rZdestroyrr r—Úrunr–rrrr«Fs z Dialog.runcCs| ¡Sr)Zget_action_area©ZdialogrrrÚKrMzDialog.cCs| ¡Sr)Zget_content_arear¬rrrr­LrMcGs*dd„}||ƒD]\}}| ||¡qdS)a The add_buttons() method adds several buttons to the Gtk.Dialog using the button data passed as arguments to the method. This method is the same as calling the Gtk.Dialog.add_button() repeatedly. The button data pairs - button text (or stock ID) and a response ID integer are passed individually. For example: .. code-block:: python dialog.add_buttons(Gtk.STOCK_OPEN, 42, "Close", Gtk.ResponseType.CLOSE) will add "Open" and "Close" buttons to dialog. cssP|rLz|dd…\}}Wnty2tdƒ‚Yn0|dd…}||fVqdS)Nrrz%Must pass an even number of arguments)r5)ZbZtZrrrrÚ_button\s  z#Dialog.add_buttons.._buttonN)Z add_button)r"rr®rWZresponserrrr�Ns zDialog.add_buttonsN)rrrr>r?r¥r r r—r#rr©r«ÚpropertyZ action_areaZvboxr�rrrrr—sÿú*  r—c@s6eZdZeejjddddœed�Zdd„Zdd „Z d S) Ú MessageDialog)r™rÚ message_typeršÚmessage_formatr²r�)rWr±©rarŸrbcCs| dd¡| d|¡dS)Núsecondary-use-markupFúsecondary-text©Z set_property©r"r²rrrÚformat_secondary_textvs z#MessageDialog.format_secondary_textcCs| dd¡| d|¡dS)Nr´Trµr¶r·rrrÚformat_secondary_markupzs z%MessageDialog.format_secondary_markupN) rrrr r r°r#rr¸r¹rrrrr°nsÿûr°c@seZdZeejjded�ZdS)ÚColorSelectionDialog©r˜r`N)rrrr r rºr#rrrrrrºƒsþrºc@seZdZeejjded�ZdS)ÚFileChooserDialog)r˜r™rkršr`N)rrrr r r¼r#rrrrrr¼‹sþr¼c@seZdZeejjded�ZdS)ÚFontSelectionDialogr»r`N)rrrr r r½r#rrrrrr½•sþr½c@s$eZdZeejjdddied�ZdS)ÚRecentChooserDialog)r˜r™Úrecent_managerršr¿Zmanagerr³N)rrrr r r¾r#rrrrrr¾Ÿs ýr¾c@sJeZdZeser"eejjde d�Ze ejj ƒZ e ejj ƒZ e ejj ƒZ dS)ÚIconView©Úmodelr`N)rrrr>r?r r rÀr#rrZget_item_at_posÚget_visible_rangeZget_dest_item_at_posrrrrrÀ«sþ  rÀc@seZdZeejjded�ZdS)Ú ToolButton)r_r`N)rrrr r rÄr#rrrrrrÄ»sþrÄc@seZdZeejjƒZdS)Ú IMContextN)rrrrr rÅZget_surroundingrrrrrÅÄsrÅc@seZdZeejjƒZdS)Ú RecentInfoN)rrrrr rÆZget_application_inforrrrrÆÌsrÆc@s^eZdZddd„Zddd„Zddd „Zdd d „Zd d „Zdd„Zddd„Z e e j j dd�Z dS)Ú TextBufferNcKs&tjfd|i|¤Ž}| ¡ |¡|S)aùCreates a tag and adds it to the tag table of the TextBuffer. :param str tag_name: Name of the new tag, or None :param **properties: Keyword list of properties and their values This is equivalent to creating a Gtk.TextTag and then adding the tag to the buffer's tag table. The returned tag is owned by the buffer's tag table. If ``tag_name`` is None, the tag is anonymous. If ``tag_name`` is not None, a tag called ``tag_name`` must not already exist in the tag table for this buffer. Properties are passed as a keyword list of names and values (e.g. foreground='DodgerBlue', weight=Pango.Weight.BOLD) :returns: A new tag. rJ)r ZTextTagÚ get_tag_tableZadd)r"Ztag_nameZ propertiesÚtagrrrÚ create_tagÖszTextBuffer.create_tagFcCstj ||||¡Sr)r rÇÚ create_mark)r"Z mark_nameZwhereZ left_gravityrrrrËòszTextBuffer.create_markrUcCstj |||¡dSr)r rÇÚset_text©r"rWr€rrrrÌõszTextBuffer.set_textcCs0t|tƒstdt|ƒƒ‚tj ||||¡dS©Nztext must be a string, not %s)rr{rpr�r rÇÚinsert)r"rErWr€rrrrÏøs zTextBuffer.insertcGsB| ¡}| ||¡|sdS| |¡}|D]}| |||¡q*dSr)Z get_offsetrÏZget_iter_at_offsetZ apply_tag)r"rErWÚtagsZ start_offsetÚstartrÉrrrÚinsert_with_tagsþs  zTextBuffer.insert_with_tagscGsNg}|D],}| ¡ |¡}|s*td|ƒ‚| |¡q|j||g|¢RŽdS)Nzunknown text tag: %s)rÈZlookupr5rrÒ)r"rErWrÐZtag_objsrÉZtag_objrrrÚinsert_with_tags_by_name s  z#TextBuffer.insert_with_tags_by_namecCs.t|tƒstdt|ƒƒ‚tj |||¡dSrÎ)rr{rpr�r rÇÚinsert_at_cursorrÍrrrrÔs zTextBuffer.insert_at_cursorrrY)N)F)rU)rU)rU)rrrrÊrËrÌrÏrÒrÓrÔrr rÇrZrrrrrÇÔs      rÇc@s$eZdZeejjƒZeejjƒZdS)ÚTextIterN)rrrrr rÕZforward_searchZbackward_searchrrrrrÕ"s rÕcs(eZdZdd„Zdd„Zes er$eZdd„Z‡fdd„Z d d „Z d d „Z d d„Z dd„Z dd„ZeejjƒZeejjƒZeejjƒZeejjƒZeejjedƒZ‡fdd„Z‡fdd„Z‡fdd„Zdd„Zdd„Zdd„Zd d!„Z‡fd"d#„Z‡fd$d%„Z ‡fd&d'„Z!‡fd(d)„Z"‡fd*d+„Z#‡Z$S),Ú TreeModelcCs | d¡Sr)Ziter_n_childrenr$rrrrD,szTreeModel.__len__cCsdSrFrr$rrrrG/szTreeModel.__bool__cCs‚t|tjƒr|St|tƒrL|dkrLt|ƒ|}|dkrBtd|ƒ‚| |¡Sz| |¡}Wntyxtd|ƒ‚Yn0|SdS)Nrzrow index is out of bounds: %dzcould not find tree path '%s')rr ÚTreeIterÚintrBÚ IndexErrorÚget_iterr5)r"ÚkeyÚindexÚaiterrrrÚ_getiter6s     zTreeModel._getitercs*tt|ƒ}t|dƒr| ¡St |¡SdS)NÚsort_new_with_model)r-rÖÚhasattrrßÚ TreeModelSortÚnew_with_model)r"Z super_objectr/rrrßEs  zTreeModel.sort_new_with_modelcCst|tjƒr|St|ƒSdSr)rr ÚTreePath©r"ÚpathrrrÚ _coerce_pathLs zTreeModel._coerce_pathcCs| |¡}t||ƒSr)rÞÚ TreeModelRow©r"rÛrÝrrrÚ __getitem__Rs zTreeModel.__getitem__cCs||}| |j|¡dSr)Úset_rowrE)r"rÛr;ÚrowrrrÚ __setitem__VszTreeModel.__setitem__cCs| |¡}| |¡dSr)rÞZremoverèrrrÚ __delitem__Zs zTreeModel.__delitem__cCst|| ¡ƒSr)ÚTreeModelRowIterÚget_iter_firstr$rrrr,^szTreeModel.__iter__zinvalid tree pathcs2| |¡}tt|ƒ |¡\}}|s.td|ƒ‚|S)Nzinvalid tree path '%s')rær-rÖrÚr5)r"råÚsuccessrÝr/rrrÚhs   zTreeModel.get_itercs$| ¡}tt|ƒ |¡}|r |SdSr)r¢r-rÖÚ iter_next)r"rÝÚ next_iterrðr/rrrñoszTreeModel.iter_nextcs$| ¡}tt|ƒ |¡}|r |SdSr)r¢r-rÖÚ iter_previous)r"rÝÚ prev_iterrðr/rrróuszTreeModel.iter_previouscCsvt|tƒrtdƒ‚| ¡}t|ƒ|kr.tdƒ‚g}g}t|ƒD].\}}|durPq>| | ||¡¡| |¡q>||fS)Nz%Expected a list or tuple, but got strz1row sequence has the incorrect number of elements) rr{rpÚ get_n_columnsrBr5Ú enumeraterÚ_convert_value)r"rëÚ n_columnsZresultÚcolumnsZcur_colr;rrrÚ _convert_row{s   zTreeModel._convert_rowcCs.| |¡\}}|D]}| ||||¡qdSr)rúÚ set_value)r"ÚtreeiterrëZ converted_rowrùÚcolumnrrrrê�szTreeModel.set_rowcCs"t|tjƒr|St | |¡|¡S)z5Convert value to a GObject.Value of the expected type)rrr6Zget_column_type)r"rýr;rrrr÷”s zTreeModel._convert_valuecGsZ| ¡}g}|D]@}t|tƒs&tdƒ‚|dks6||kr>tdƒ‚| | ||¡¡qt|ƒS)Nzcolumn numbers must be intsrzcolumn number is out of range)rõrrØrpr5rr9Útuple)r"rürùrøÚvaluesZcolrrrr¦›s z TreeModel.getcstt|ƒ | |¡|¡Sr)r-rÖÚ row_changedræ©r"rårEr/rrr­szTreeModel.row_changedcstt|ƒ | |¡|¡Sr)r-rÖÚ row_insertedrærr/rrr°szTreeModel.row_insertedcstt|ƒ | |¡|¡Sr)r-rÖÚrow_has_child_toggledrærr/rrr³sÿzTreeModel.row_has_child_toggledcstt|ƒ | |¡¡Sr)r-rÖÚ row_deletedrærär/rrr·szTreeModel.row_deletedcstt|ƒ | |¡||¡Sr)r-rÖÚrows_reorderedræ)r"rårEZ new_orderr/rrrºsÿzTreeModel.rows_reordered)%rrrrDrGr>r?rRrÞrßrærérìrír,rr rÖrïÚ iter_childrenZiter_nth_childÚ iter_parentZget_iter_from_stringr5rÚrñrórúrêr÷r¦rrrrrr@rrr/rrÖ+s<     ÿ       rÖcs<eZdZeejjdd�Zd‡fdd„ Zd ‡fdd„ Z‡Z S) Ú TreeSortable)NNrYNcstt|ƒ |||¡dSr)r-rÚ set_sort_func)r"Zsort_column_idÚ sort_funcrmr/rrr ÇszTreeSortable.set_sort_funccstt|ƒ ||¡dSr)r-rÚset_default_sort_func)r"r rmr/rrr Êsz"TreeSortable.set_default_sort_func)N)N) rrrrr rZget_sort_column_idr r r@rrr/rrÃsrc@s6eZdZeejjded�Zeejdƒs2e dd„ƒZ dS)rárÁr`râcCs t |¡Sr)rÖrß)r"Z child_modelrrrrâÙszTreeModelSort.new_with_modelN) rrrr r rár#rràÚ classmethodrârrrrráÓsþ rác@s^eZdZdd„Zdd„Zddd„Zddd „Zdd d „Zdd d „Zddd„Z dd„Z dd„Z dS)Ú ListStorecGstj |¡| |¡dSr)r r r#Úset_column_types©r"Z column_typesrrrr#âs zListStore.__init__cCs8|dur&| |¡\}}| |||¡}ntj ||¡}|Sr)rúZinsert_with_valuesvr r rÏ)r"rXrërùrürrrÚ _do_insertæs zListStore._do_insertNcCs |r| d|¡Stj |¡SdSrT)rr r r©r"rërrrrïs zListStore.appendcCs | d|¡S©Nr©rrrrrÚprepend÷szListStore.prependcCs | ||¡Srr)r"rXrërrrrÏúszListStore.insertcCsB|dur4|durd}n| |¡ ¡d}| ||¡Stj ||¡SrT)Úget_pathÚ get_indicesrr r Ú insert_before©r"ÚsiblingrërXrrrrýs  zListStore.insert_beforecCsF|dur8|durd}n| |¡ ¡dd}| ||¡Stj ||¡S©NrrUr )rrrr r Ú insert_afterrrrrrs  zListStore.insert_aftercCs"| ||¡}tj ||||¡dSr)r÷r r rû©r"rürýr;rrrrûs zListStore.set_valuecs°‡‡fdd„}|r¬t|dtƒr@||ddd…|ddd…ƒnlt|dttfƒrzt|ƒdkrftdƒ‚||d|dƒn2t|dtƒr¤|t|dƒ|d ¡ƒntdƒ‚dS)Ncsxt|ƒt|ƒkrtdƒ‚g}g}t||ƒD]6\}}t|tƒsDtdƒ‚| |¡| ˆ ||¡¡q*tj  ˆˆ||¡dS©Nz7The number of columns do not match the number of valuesz0TypeError: Expected integer argument for column.) rBrpr¤rrØrr÷r r Úset©ZcolsZvalsrùrÿZcol_numr;©r"rürrÚ _set_listss  z!ListStore.set.._set_listsrrr úToo many argumentsú‹Argument list must be in the form of (column, value, ...), ((columns,...), (values, ...)) or {column: value}. No -1 termination is needed.)rrØrþr(rBrpr£rÿ©r"rürr!rr rrs  z ListStore.set)N)N)N)N)N© rrrr#rrrrÏrrrûrrrrrr ás    r c@s|eZdZdd„Zedd„ƒZedd„ƒZedd„ƒZed d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dd„Zdd„ZdS)rçcCsht|tjƒstdt|ƒjƒ‚||_t|tjƒr>| |¡|_ n&t|tj ƒrR||_ ntdt|ƒjƒ‚dS)Nz expected Gtk.TreeModel, %s foundz/expected Gtk.TreeIter or Gtk.TreePath, %s found) rr rÖrpr�rrÂrãrÚrEr×)r"rÂZ iter_or_pathrrrr#8s   ÿzTreeModelRow.__init__cCs|j |j¡Sr)rÂrrEr$rrrråDszTreeModelRow.pathcCs| ¡Sr)Úget_nextr$rrrÚnextHszTreeModelRow.nextcCs| ¡Sr)Ú get_previousr$rrrÚpreviousLszTreeModelRow.previouscCs| ¡Sr)Ú get_parentr$rrrr™PszTreeModelRow.parentcCs"|j |j¡}|rt|j|ƒSdSr)rÂrñrErç)r"ròrrrr&TszTreeModelRow.get_nextcCs"|j |j¡}|rt|j|ƒSdSr)rÂrórErç)r"rôrrrr(YszTreeModelRow.get_previouscCs"|j |j¡}|rt|j|ƒSdSr)rÂrrErç)r"Z parent_iterrrrr*^szTreeModelRow.get_parentcsÊt|tƒrH|ˆj ¡kr&td|ƒ‚n|dkr8ˆ |¡}ˆj ˆj|¡St|tƒr˜|  ˆj ¡¡\}}}g}t |||ƒD]}|  ˆj ˆj|¡¡qx|St|t ƒr´‡fdd„|DƒSt dt|ƒjƒ‚dS)Nú!column index is out of bounds: %drcsg|] }ˆ|‘qSrr)rIÚkr$rrrLqrMz,TreeModelRow.__getitem__..z0indices must be integers, slice or tuple, not %s)rrØrÂrõrÙÚ_convert_negative_indexr9rEÚsliceÚindicesÚrangerrþrpr�r)r"rÛrÑÚstopÚstepZalistÚirr$rrécs"    ÿzTreeModelRow.__getitem__c Cs4t|tƒrL||j ¡kr&td|ƒ‚n|dkr8| |¡}|j |j||¡nät|tƒrÊ|  |j ¡¡\}}}t |||ƒ}t |ƒt |ƒkr t dt |ƒt |ƒfƒ‚t |ƒD]\}}|j |j|||¡q¨nft|tƒ�rt |ƒt |ƒkrþt dt |ƒt |ƒfƒ‚t||ƒD]\} }||| <�qntdt|ƒjƒ‚dS)Nr+rz9attempt to assign sequence of size %d to slice of size %dzr?r'r,rrrrrî s rîcsveZdZddd„Z‡fdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dd„Z‡ZS)rãrcCszt|tƒrt|ƒ}nt|tƒs2d dd„|Dƒ¡}t|ƒdkrJtd|ƒ‚z t |¡WStyttd|ƒ‚Yn0dS)Nz:css|]}t|ƒVqdSr)r{)rIZvalrrrZ ¾rMz#TreePath.__new__..rz-could not parse subscript '%s' as a tree path)rrØr{ZjoinrBrprãZnew_from_string)ÚclsrårrrÚ__new__ºs       zTreePath.__new__cstt|ƒ ¡dSr)r-rãr#r–r/rrr#ÇszTreePath.__init__cCs | ¡p dS)NÚ)Z to_stringr$rrrÚ__str__ÊszTreePath.__str__cCs|duo| |¡dkSr©Zcompare©r"ZotherrrrÚ__lt__ÍszTreePath.__lt__cCs|duo| |¡dkSrr:r;rrrÚ__le__ÐszTreePath.__le__cCs|duo| |¡dkSrr:r;rrrÚ__eq__ÓszTreePath.__eq__cCs|dup| |¡dkSrr:r;rrrÚ__ne__ÖszTreePath.__ne__cCs|dup| |¡dkSrr:r;rrrÚ__gt__ÙszTreePath.__gt__cCs|dup| |¡dkSrr:r;rrrÚ__ge__ÜszTreePath.__ge__cCs t| ¡ƒSr)rErr$rrrr,ßszTreePath.__iter__cCs| ¡Sr)Z get_depthr$rrrrDâszTreePath.__len__cCs | ¡|Sr)r)r"rÜrrrréåszTreePath.__getitem__)r)rrrr7r#r9r<r=r>r?r@rAr,rDrér@rrr/rrã¸s rãc@s^eZdZdd„Zdd„Zddd„Zddd „Zdd d „Zdd d „Zddd„Z dd„Z dd„Z dS)Ú TreeStorecGstj |¡| |¡dSr)r rBr#rrrrrr#îs zTreeStore.__init__cCs<|dur(| |¡\}}| ||||¡}ntj |||¡}|Sr)rúZinsert_with_valuesr rBrÏ)r"r™rXrërùrürrrròs zTreeStore._do_insertNcCs| |d|¡SrTr©r"r™rërrrrûszTreeStore.appendcCs| |d|¡SrrrCrrrrþszTreeStore.prependcCs| |||¡Srr)r"r™rXrërrrrÏszTreeStore.insertcCsX|durH|durd}n$|dur(| |¡}| |¡ ¡d}| |||¡Stj |||¡SrT)rrrrr rBr©r"r™rrërXrrrrs zTreeStore.insert_beforecCs\|durL|durd}n(|dur(| |¡}| |¡ ¡dd}| |||¡Stj |||¡Sr)rrrrr rBrrDrrrrs zTreeStore.insert_aftercCs"| ||¡}tj ||||¡dSr)r÷r rBrûrrrrrûs zTreeStore.set_valuecs°‡‡fdd„}|r¬t|dtƒr@||ddd…|ddd…ƒnlt|dttfƒrzt|ƒdkrftdƒ‚||d|dƒn2t|dtƒr¤||d ¡|d ¡ƒntdƒ‚dS)Ncsxt|ƒt|ƒkrtdƒ‚g}g}t||ƒD]6\}}t|tƒsDtdƒ‚| |¡| ˆ ||¡¡q*tj  ˆˆ||¡dSr) rBrpr¤rrØrr÷r rBrrr rrr!!s  z!TreeStore.set.._set_listsrrr r"r#) rrØrþr(rBrpr£Zkeysrÿr$rr rr s  z TreeStore.set)N)N)N)N)Nr%rrrrrBís    rBcs˜eZdZeser"eejjde d�Ze ejj ƒZ e ejj ƒZ e ejj ƒZ ‡fdd„Z‡fdd„Zd‡fd d „ Zd‡fd d „ Zd‡fdd„ Zdd„Z‡ZS)ÚTreeViewrÁr`cs t|ƒ}tt|ƒ |||¡dSr)rr-rEÚenable_model_drag_source)r"Zstart_button_maskrÚactionsrr/rrrFKs  þz!TreeView.enable_model_drag_sourcecst|ƒ}tt|ƒ ||¡dSr)rr-rEÚenable_model_drag_dest)r"rrGrr/rrrHQs ÿzTreeView.enable_model_drag_destNFçcs0t|tjƒst|ƒ}tt|ƒ |||||¡dSr)rr rãr-rEÚscroll_to_cell)r"rårýZ use_alignZ row_alignZ col_alignr/rrrJVs zTreeView.scroll_to_cellcs,t|tjƒst|ƒ}tt|ƒ |||¡dSr)rr rãr-rEÚ set_cursor)r"rårýZ start_editingr/rrrK[s zTreeView.set_cursorcs&t|tjƒst|ƒ}tt|ƒ ||¡Sr)rr rãr-rEÚ get_cell_area)r"rårýr/rrrL`s zTreeView.get_cell_areacKs>tƒ}| |¡| |d¡| ||¡|j|fi|¤ŽdS)NF)ÚTreeViewColumnZ set_titleÚ pack_startZ insert_columnÚset_attributes)r"rXr˜ZcellrPrýrrrÚinsert_column_with_attributeses    z&TreeView.insert_column_with_attributes)NFrIrI)NF)N)rrrr>r?r r rEr#rrZget_path_at_posrÃZget_dest_row_at_posrFrHrJrKrLrPr@rrr/rrEAsþ     rEcs<eZdZd dd„ZeejjƒZd ‡fdd„ Zdd„Z ‡Z S) rMr8NcKsDtjj||d�|r | |d¡| ¡D]\}}| |||¡q(dS)Nr»T)r rMr#rNrOÚ add_attribute)r"r˜Ú cell_rendererÚ attributesrJr;rrrr#rs  zTreeViewColumn.__init__cstt|ƒ |||¡dSr)r-rMÚset_cell_data_func)r"rRÚfuncZ func_datar/rrrT~sz!TreeViewColumn.set_cell_data_funccKs6tj ||¡| ¡D]\}}tj ||||¡qdSr)r Z CellLayoutZclear_attributesrOrQ)r"rRrSrJr;rrrrO�szTreeViewColumn.set_attributes)r8N)N) rrrr#rr rMZcell_get_positionrTrOr@rrr/rrMqs ÿ rMcs4eZdZ‡fdd„Z‡fdd„Z‡fdd„Z‡ZS)Ú TreeSelectioncs(t|tjƒst|ƒ}tt|ƒ |¡dSr)rr rãr-rVÚ select_pathrär/rrrWŽs zTreeSelection.select_pathcs,tt|ƒ ¡\}}}|r ||fS|dfSdSr)r-rVÚ get_selected)r"rðrÂrÝr/rrrX“szTreeSelection.get_selectedcstt|ƒ ¡\}}||fSr)r-rVÚget_selected_rows)r"ÚrowsrÂr/rrrYœszTreeSelection.get_selected_rows)rrrrWrXrYr@rrr/rrVŒs  rVc@sReZdZeejjddedd�Zdd„Ze ej dƒr:dd „Z e ej d ƒrNd d „Z d S)ÚButton)r]ÚstockÚ use_stockÚ use_underline)r\r‘)raržrbr’cOstd|vr`|dr`tjdtdd�| ¡}|d|d<d|d<d|d<|d=tjj|fi|¤Žn|j|i|¤ŽdS) Nr\zKStock items are deprecated. Please use: Gtk.Button.new_with_mnemonic(label)rr¡r]Tr]r^)r§r¨rr¢r r[r#r©)r"rrPrªrrrr#­sþ zButton.__init__Úset_focus_on_clickcOstjj|g|¢Ri|¤ŽSr)r r'r_r–rrrr_ÀszButton.set_focus_on_clickÚget_focus_on_clickcOstjj|g|¢Ri|¤ŽSr)r r'r`r–rrrr`ÆszButton.get_focus_on_clickN) rrrr r r[r#rr©ràr'r_r`rrrrr[¦sü  r[c@seZdZeejjded�ZdS)Ú LinkButton)Zurir]r`N)rrrr r rar#rrrrrraÎsþrac@seZdZeejjded�ZdS)ÚLabelrˆr`N)rrrr r rbr#rrrrrrbÖsþrbc@s8eZdZeser,eejjddddœe dd�Z dd„Zd S) Ú Adjustment)r;ZlowerZupperÚstep_incrementÚpage_incrementZ page_sizeZ page_incrZ step_incr)rerdr‘)rarŸrbr’cOs€tstrL|j|i|¤Žd|vr0| |d¡q|t|ƒdkr|| |d¡n0tjj|g|¢Ri|¤Žd|vr|| |d¡dS)Nr;r r)r>r?r©rûrBr rcr#r–rrrr#és zAdjustment.__init__N) rrrr>r?r r rcr#rr©rrrrrcßsÿúrcc@sPeZdZeejjddddœed�Zejj ejj Bejj ejj Bddfdd„Z d S) ÚTable)Ún_rowsrør„rZrù)rgrør³rc Cs"tj |||||||||| ¡ dSr)r rfÚattach) r"r*Z left_attachZ right_attachZ top_attachZ bottom_attachZxoptionsZyoptionsZxpaddingZypaddingrrrrhsz Table.attachN) rrrr r rfr#rZ AttachOptionsZEXPANDZFILLrhrrrrrfs ýrfc@seZdZeejjded�ZdS)ÚScrolledWindow©Z hadjustmentZ vadjustmentr`N)rrrr r rir#rrrrrrisþric@seZdZeejjded�ZdS)Ú HScrollbar©Z adjustmentr`N)rrrr r rkr#rrrrrrksþrkc@seZdZeejjded�ZdS)Ú VScrollbarrlr`N)rrrr r rmr#rrrrrrm sþrmcs,eZdZd‡fdd„ Zd‡fdd„ Z‡ZS) ÚPanedFTcstt|ƒ |||¡dSr)r-rnÚpack1©r"r*ZresizeZshrinkr/rrro+sz Paned.pack1cstt|ƒ |||¡dSr)r-rnÚpack2rpr/rrrq.sz Paned.pack2)FT)TT)rrrrorqr@rrr/rrn*srnc@seZdZeejjded�ZdS)ÚArrow)Z arrow_typeZ shadow_typer`N)rrrr r rrr#rrrrrrr6sþrrcs&eZdZddd„Z‡fdd„Z‡ZS)ÚIconSetNcCs6|dur&tjdtdd�tj |¡}n tj |¡}|S)NzXGtk.IconSet(pixbuf) has been deprecated. Please use: Gtk.IconSet.new_from_pixbuf(pixbuf)rr¡)r§r¨rr rsZnew_from_pixbufr7)r6ZpixbufZiconsetrrrr7?sþ zIconSet.__new__cstt|ƒ ¡Sr)r-rsr#r–r/rrr#IszIconSet.__init__)N)rrrr7r#r@rrr/rrs>s rsc@seZdZeejjded�ZdS)ÚViewportrjr`N)rrrr r rtr#rrrrrrtOsþrtcs&eZdZd‡fdd„ Zdd„Z‡ZS)ÚTreeModelFilterNcstt|ƒ ||¡dSr)r-ruÚset_visible_func)r"rUÚdatar/rrrvYsz TreeModelFilter.set_visible_funccCs | |¡}| ¡ |||¡dSr)Zconvert_iter_to_child_iterZ get_modelrû)r"rErýr;rrrrû\s zTreeModelFilter.set_value)N)rrrrvrûr@rrr/rruXsrucs,eZdZeddd„ƒZd‡fdd„ Z‡ZS)Ú CustomSorterNcCs$|durt|ƒ}nd}tj ||¡Sr)r r rxr)r6r rmÚ compare_funcrrrrhs zCustomSorter.newcs(|durt|ƒ}nd}tt|ƒ ||¡Sr)r r-rxr )r"r rmryr/rrr qs zCustomSorter.set_sort_func)N)N)rrrr rr r@rrr/rrxfs rxc@seZdZdd„ZdS)ÚMenuc Cs| d||||||¡dSr)Zpopup_for_device)r"Zparent_menu_shellZparent_menu_itemrUrwZbuttonZ activate_timerrrÚpopup~sz Menu.popupN)rrrr{rrrrrz}srzcGs tƒdSr)Ú_Gtk_main_quit)rrrrÚ main_quit†sr}c Ospttjƒ�Rtƒ�,t|i|¤ŽWdƒWdƒS1sD0YWdƒn1sb0YdSr)rr r}rÚ _Gtk_main)rrPrrrÚmainŒs rÚ stock_lookup)aZsysr§Z gi.repositoryrZ _ossighelperrrr�rrZ overridesrrr r Zmoduler Zgir r Z_versionr>r?r=Z__all__rZwarn_msgr¨ZRuntimeWarningrrrZobjectr r'rArSr[rcreryr‚rƒr…r‡r|r‰r“r#r•r—r°rºr¼r½r¾rÀrÄrÅrÆrÇrÕrÖrrár rçrîrãrBrErMrVr[rarbrcrfrirkrmrnrrrsrtrurxrzr}r|rr~r€Z init_checkr”Zargvr(rrrrZs¶            ,  (               *  ý  X                J        Q g  1 P ,    %