Ë ÿ;3l´3Šãóô—dZddlZddlmZmZmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z ddl!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.ddlm/Z/ddl0m1Z2ddlm3Z3ddl4m5Z5m6Z6ddl7m8Z8dd l9m:Z:dd l;mZ>m?Z?dd l@mAZAdd lBmCZCddlDmEZEddlFmGZGddlHmIZIddlJmKZKddl@mLZLe6«ZMeCeEeGeIeKfZNGd„de«ZOdaPGd„de"«ZQGd„de"«ZRGd„de"«ZSGd„de"«ZTGd„de"«ZUGd „d!e"«ZVGd"„d#e#«ZWGd$„d%«ZXeX«ZYd&ZZd'd(d)d*d+d,œZ[d-„Z\Gd.„d/e"«Z]e^d0k(r dd1l_m`Z`e`d2d3d4¬5«dd6lambZbebeO«yy)7aèIDLE Configuration Dialog: support user customization of IDLE by GUI Customize font faces, sizes, and colorization attributes. Set indentation defaults. Customize keybindings. Colorization and keybindings can be saved as user defined sets. Select startup options including shell/editor and default window size. Define additional help sources. Note that tab width in IDLE is currently fixed at eight due to Tk issues. Refer to comments in EditorWindow autoindent code for details. éN)ÚToplevelÚListboxÚCanvasÚ StringVarÚ BooleanVarÚIntVarÚTRUEÚFALSEÚTOPÚBOTTOMÚRIGHTÚLEFTÚSOLIDÚGROOVEÚNONEÚBOTHÚXÚYÚWÚEÚEWÚNSÚNSEWÚNWÚ HORIZONTALÚVERTICALÚANCHORÚACTIVEÚENDÚTclError) ÚFrameÚ LabelFrameÚButtonÚ CheckbuttonÚEntryÚLabelÚ OptionMenuÚNotebookÚ RadiobuttonÚ ScrollbarÚStyleÚSpinboxÚCombobox)Ú colorchooser)Ú messagebox)ÚidleConfÚ ConfigChanges)Ú GetKeysWindow)Ú DynOptionMenu)Úmacosx)Ú SectionNameÚ HelpSource)Ú view_text)Ú AutoComplete)Ú CodeContext)Ú ParenMatch)ÚFormatParagraph)ÚSqueezer)ÚScrollableTextFramecób‡—eZdZdZddddœd„Zd„Zd„Zd„Zd„Zd „Z ˆfd „Z d „Z d „Z d „Z ˆxZS)Ú ConfigDialogzConfig dialog for IDLE. F)Ú_htestÚ_utestcó¦—tj||«||_|ri|_|s|j «|j |xsd«|j «dz}|j«|sdndz}|jd|›d|›�«|j«|jtt¬«|j|«|jd|j«|jj j#«t$j'«|s1|j)«|j+«|j-«yy) aËShow the tabbed dialog for user configuration. Args: parent - parent of this dialog title - string which is the title of this popup dialog _htest - bool, change box location when running htest _utest - bool, don't wait_window when running unittest Note: Focus set on font page fontlist. Methods: create_widgets cancel: Bound to DELETE_WINDOW protocol. zIDLE Preferencesééé–Ú+©ÚheightÚwidthÚWM_DELETE_WINDOWN)rÚ__init__ÚparentÚ instance_dictÚwithdrawÚtitleÚ winfo_rootxÚ winfo_rootyÚgeometryÚcreate_widgetsÚ resizabler Ú transientÚprotocolÚcancelÚfontpageÚfontlistÚ focus_setÚtracersÚattachÚgrab_setÚ wm_deiconifyÚ wait_window)ÚselfrLrOr@rAÚxÚys ú+/usr/lib/python3.12/idlelib/configdialog.pyrKzConfigDialog.__init__1s€ô ×ј$ Ô'؈Œ Ù Ø#%ˆFÔ ÙØ �M‰MŒOà � ‰ �5Ò.Ð.Ô/Ø × Ñ Ó  2Ñ %ˆØ × Ñ Ó ©f¡B¸#Ñ >ˆØ � ‰ ˜˜!˜˜A˜a˜S�kÔ"ð ×ÑÔØ �‰œe¬5ˆÔ1Ø �‰�vÔØ � ‰ Ð(¨$¯+©+Ô6Ø � ‰ ×Ñ×(Ñ(Ô*ô �‰ÔáØ �M‰MŒOØ × Ñ Ô Ø × Ñ Õ ðócóŽ—t|d¬«x|_}|jjd¬«t|«x|_}t |«|_t||j «|_t||j«|_ t||j «|_ t|«|_t|«|_|j#|jd¬«|j#|jd¬«|j#|jd¬«|j#|jd ¬«|j#|j d ¬«|j#|j d ¬«|j%«|j't(t*t,¬ «|j/«j't0¬ «y)aCreate and place widgets for tabbed dialog. Widgets Bound to self: frame: encloses all other widgets note: Notebook highpage: HighPage fontpage: FontPage keyspage: KeysPage winpage: WinPage shedpage: ShedPage extpage: ExtPage Methods: create_action_buttons load_configs: Load pages except for extensions. activate_config_changes: Tell editors to reload. é©ÚpaddingÚnwes)Ústickyz Fonts ©ÚtextÚ Highlightsz Keys z Windows z Shell/Ed Ú Extensions©ÚsideÚexpandÚfill©rpN)r!ÚframeÚgridr(ÚnoteÚExtPageÚextpageÚHighPageÚhighpageÚFontPagerXÚKeysPageÚkeyspageÚWinPageÚwinpageÚShedPageÚshedpageÚaddÚenable_traversalÚpackr r rÚcreate_action_buttonsr )r`rtrvs rcrSzConfigDialog.create_widgets`s@€ô$# 4°Ô3Ð3ˆŒ �UØ � ‰ �‰˜vˆÔ&Ü# E›?Ð*ˆŒ �Dܘt“}ˆŒ Ü   t§|¡|Ó4ˆŒ Ü   t§}¡}Ó5ˆŒ Ü   t§|¡|Ó4ˆŒ ܘt“}ˆŒ Ü  ›ˆŒ à �‰�—‘ YˆÔ/Ø �‰�—‘ \ˆÔ2Ø �‰�—‘ XˆÔ.Ø �‰�—‘ KˆÔ0Ø �‰�—‘ \ˆÔ2Ø �‰�—‘ LˆÔ1Ø ×ÑÔØ � ‰ ”s¤4¬dˆ Ô3Ø ×"Ñ"Ó$×)Ñ)¬vÐ)Õ6rdcó—tj«ri}nddi}t|jd¬«}t|d¬«}i|_d|j fd|j fd|jfd|jffD]J\}}t|f||td œ|¤Ž|j|<|j|jtd ¬ «ŒLt|dd ¬ «jt¬«|jt¬«|S)aÑReturn frame of action buttons for dialog. Methods: ok apply cancel help Widget Structure: outer: Frame buttons: Frame (no assignment): Button (ok) (no assignment): Button (apply) (no assignment): Button (cancel) (no assignment): Button (help) (no assignment): Frame rh)ééérgÚOkÚApplyÚCancelÚHelp)rlÚcommandÚ takefocusrf)rpÚpadxr)rHÚ borderwidthrs)r4ÚisAquaTkr!rtÚbuttonsÚokÚapplyrWÚhelpr#r r„rr r )r`Ú padding_argsÚouterÚ buttons_frameÚtxtÚcmds rcr…z"ConfigDialog.create_action_buttons†sú€ô$ �?‰?Ô ð‰Là% vÐ.ˆLÜ�d—j‘j¨!Ô,ˆÜ˜e¨QÔ/ˆ ؈Œ à �4—7‘7ˆOØ �d—j‘jÐ !Ø �t—{‘{Ð #Ø �T—Y‘YÐ ó !‰HˆC�ô !' }ð!8¸3ÈÜ!&ñ!8Ø*6ñ!8ˆD�L‰L˜Ñ à �L‰L˜Ñ × "Ñ "¬°1Ð "Õ 5ð!ô ˆe˜A¨1Ô-×2Ñ2¼Ð2Ô<Ø×ѤÐÔ'؈ rdcóD—|j«|j«y)z*Apply config changes, then dismiss dialog.N)r•Údestroy©r`s rcr”zConfigDialog.ok®s€à � ‰ Œ Ø � ‰ �rdcó —|j«tj«|jj «|j «y)z+Apply config changes and leave dialog open.N)Údeactivate_current_configÚchangesÚsave_allrxÚsave_all_changed_extensionsÚactivate_config_changesržs rcr•zConfigDialog.apply³s6€à ×&Ñ&Ô(Ü×ÑÔØ � ‰ ×0Ñ0Ô2Ø ×$Ñ$Õ&rdcóL—tj«|j«y)zPDismiss config dialog. Methods: destroy: inherited N)r¡Úclearr�ržs rcrWzConfigDialog.cancelºs€ô � ‰ ŒØ � ‰ �rdcóŽ•—|jjjdd«a|j «t ‰|�«y)Nú1.0Úend)rXÚ font_sampleÚgetÚfont_sample_textÚ grab_releaseÚsuperr�)r`Ú __class__s €rcr�zConfigDialog.destroyÃs6ø€àŸ=™=×4Ñ4×8Ñ8¸ÀÓFÐØ ×ÑÔÜ ‰‰Õrdc óÜ—|jj|jj«d¬«j«}t |dt t j|d«z¬«y)z¤Create textview for config dialog help. Attributes accessed: note Methods: view_text: Method from textview module. rl)ÚoptionzHelp for IDLE preferencesÚ)rOÚcontentsN)rvÚtabÚselectÚstripr7Ú help_commonÚ help_pagesr«)r`Úpages rcr–zConfigDialog.helpÉsQ€ð�y‰y�}‰}˜TŸY™Y×-Ñ-Ó/¸ˆ}Ó?×EÑEÓGˆÜ�$Ð9Ü&¤z§~¡~°d¸BÓ'?Ñ?ö ArdcóZ—|jjD]}|j«Œy)z/Remove current key bindings in current windows.N)rLrMÚRemoveKeybindings)r`Úinstances rcr z&ConfigDialog.deactivate_current_configÕs"€àŸ ™ ×1Ô1ˆHØ × &Ñ &Õ (ñ2rdcó0—|jjD]b}|j«|j«|j «|j «|j «|j«ŒdtD]}|j«Œy)z¨Apply configuration changes to current windows. Dynamically update the current parent window instances with some of the configuration changes. N) rLrMÚResetColorizerÚ ResetFontÚset_notabs_indentwidthÚApplyKeybindingsÚreset_help_menu_entriesÚupdate_cursor_blinkÚ reloadablesÚreload)r`r¼Úklasss rcr¤z$ConfigDialog.activate_config_changesÚsu€ð Ÿ ™ ×1Ô1ˆHØ × #Ñ #Ô %Ø × Ñ Ô Ø × +Ñ +Ô -Ø × %Ñ %Ô 'Ø × ,Ñ ,Ô .Ø × (Ñ (Õ *ð 2÷!ˆEØ �L‰L�Nñ!rd)r²)Ú__name__Ú __module__Ú __qualname__Ú__doc__rKrSr…r”r•rWr�r–r r¤Ú __classcell__©r¯s@rcr?r?-sGø„ñð-°5Àô-ò^$7òL&òPò 'òôò Aò)ö rdr?u^ AaBbCcDdEeFfGgHhIiJj 1234567890#:+=(){}[] ¢£¥§©«®¶½ĞÀÃ�ÂÃÄÅÇÃ�Øß É�ɕɘɞɟɤɫɮɰɷɻÊ�ʃʆʎʞʢʫʭʯ ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκ БбДдЖжПпФфЧчЪъЭÑ�ѠѤѬӜ ×�בגדהוזחטיךכל×�מןנסעף ابجدهوزحطي٠١٢٣٤٥٦٧٨٩ ०१२३४५६७८९अआइईउऊà¤�à¤�ओऔ ௦௧௨௩௪௫௬௭௮௯அஇஉஎ 〇一二三四五六七八ä¹� 汉字漢字人木ç�«åœŸé‡‘æ°´ ê°€ëƒ�ë�”려모뵤수유즈치 ã�‚ã�„ã�†ã�ˆã�Šã‚¢ã‚¤ã‚¦ã‚¨ã‚ª có>‡—eZdZˆfd„Zd„Zd„Zd„Zd„Zdd„ZˆxZ S)r{c󆕗t‰|�|«|j|_|j«|j «y©N)r®rKÚhighlight_sampleÚcreate_page_fontÚ load_font_cfg)r`Úmasterrzr¯s €rcrKzFontPage.__init__s6ø€Ü ‰Ñ˜Ô Ø (× 9Ñ 9ˆÔØ ×ÑÔØ ×ÑÕrdcó¤—tjt|«|j«|_tjt|«|j«|_tjt |«|j«|_t|dtd¬«}t|dtd¬«}t|«}t|«}t|td¬«}t|ddt¬ «|_|jj!d |j"«|jj!d |j"«|jj!d |j"«t%|«}|j'|jj(¬ «|jj'|j*¬«t|d¬«}t-||j d«|_t1||jddd¬«|_t5|«}|j6|_|j8j't:dd¬«|j8j=t>t@«|jCdd¬«|jEdd¬«|jGdddd¬«|jGdddddd¬«|jItJddtL¬«|jItJddtL¬«|jItJtN¬«|jjIttPtL¬«|jIttR¬ «|jIttN¬«|j.jIttN¬«|j2jIttNd!¬"«|jItPtT¬#«y)$aRReturn frame of widgets for Font tab. Fonts: Enable users to provisionally change font face, size, or boldness and to see the consequence of proposed choices. Each action set 3 options in changes structuree and changes the corresponding aspect of the font sample on this page and highlight sample on highlight page. Function load_font_cfg initializes font vars and widgets from idleConf entries and tk. Fontlist: mouse button 1 click or up or down key invoke on_fontlist_select(), which sets var font_name. Sizelist: clicking the menubutton opens the dropdown menu. A mouse button 1 click or return key sets var font_size. Bold_toggle: clicking the box toggles var font_bold. Changing any of the font vars invokes var_changed_font, which adds all 3 font options to changes and calls set_samples. Set_samples applies a new font constructed from the font vars to font_sample and to highlight_sample on the highlight page. Widgets for FontPage(Frame): (*) widgets bound to self frame_font: LabelFrame frame_font_name: Frame font_name_title: Label (*)fontlist: ListBox - font_name scroll_font: Scrollbar frame_font_param: Frame font_size_title: Label (*)sizelist: DynOptionMenu - font_size (*)bold_toggle: Checkbutton - font_bold frame_sample: LabelFrame (*)font_sample: Label r‰z Shell/Editor Font ©r‘Úreliefrlz Font Sample (Editable) z Font Face :)ÚjustifyrléT©rHr�Úexportselectionúzz©rŽ)ÚyscrollcommandzSize :rkNérÚBold)ÚvariableÚonvalueÚoffvaluerl)ÚwraprIrH©Úweightrf)ÚrowÚcolumnr�ÚpadyrˆÚnsew)rærçÚrowspanr�rèrj©rpr�rèrr©rpÚanchorro)rprrrC©rprír�)rqrr)+r[r‚rÚvar_changed_fontÚ font_nameÚ font_sizerÚ font_boldr"rr!r&rrr rYÚbindÚon_fontlist_selectr*ÚconfigÚyviewÚsetr3Úsizelistr$Ú bold_toggler=rlrªrÚinsertrr¬ÚcolumnconfigureÚ rowconfigurerur„r rrr rr) r`Ú frame_fontÚ frame_sampleÚframe_font_nameÚframe_font_paramÚfont_name_titleÚ scroll_fontÚfont_size_titleÚfont_sample_frames rcrÑzFontPage.create_page_font!s€ôL!Ÿ™¤Y¨t£_°d×6KÑ6KÓLˆŒÜ Ÿ™¤Y¨t£_°d×6KÑ6KÓLˆŒÜ Ÿ™¤Z°Ó%5°t×7LÑ7LÓMˆŒô  °!¼FØ%:ô<ˆ ä! $°A¼fØ'AôCˆ ô   Ó+ˆÜ  Ó,ÐÜØ¬°MôCˆä ¸Ø*.ÄôGˆŒ à � ‰ ×ÑÐ.°×0GÑ0GÔHØ � ‰ ×ÑÐ,¨d×.EÑ.EÔFØ � ‰ ×ÑÐ.°×0GÑ0GÔHÜ Ó0ˆ Ø×Ñ 4§=¡=×#6Ñ#6ÐÔ7Ø � ‰ ×ѨK¯O©OÐÔ<ÜÐ 0°xÔ@ˆÜ%Ð&6¸¿¹ÈÓMˆŒ Ü&Ø ¨4¯>©>Ø A¨Fô4ˆÔô0° Ó=ÐØ,×1Ñ1ˆÔØ ×Ñ×ѤT°¸1ÐÔ=Ø ×Ñ×ѤÔ%5Ô6ð ×јQ qÐÔ)Ø ×ј! AÐÔ&Ø�‰˜A a¨a°aˆÔ8Ø×јa¨°1¸1À1Ø!'ð ô )ð ×Ѥ#¨A°A¼AÐÔ>Ø×Ѥ3¨Q°Q¼QÐÔ?Ø×Ѥ#¬aÐÔ0Ø � ‰ ×Ѥ¬T¼ÐÔ:Ø×Ñœd¬ÐÔ+Ø×Ѥ$¬qÐÔ1Ø � ‰ ×Ѥ¬QÐÔ/Ø ×Ñ×Ѥ4´¸ÐÔ;à×Ѥd´ÐÕ6rdcó0—tj|dd«}|dj«}|d}|ddk(}tt t j |«««}|D]"}|jjt|«Œ$|jj |«|D�cgc]}|j«‘Œ}} |j|«} |jj| «|jj| «|jj| «|jj| «|j"j%d|«|j&j |«|j)«ycc}w#t $rYŒXwxYw) aLoad current configuration settings for the font options. Retrieve current font with idleConf.GetFont and font families from tk. Setup fontlist and set font_name. Setup sizelist, which sets font_size. Set font_bold. Call set_samples. ÚmainÚ EditorWindowrrÞr‰Úbold)Ú7Ú8Ú9Ú10Ú11Ú12Ú13Ú14Ú16Ú18Ú20Ú22Ú25Ú29Ú34Ú40N)r0ÚGetFontÚlowerÚsortedr÷ÚtkfontÚfamiliesrYrúrrðÚindexÚseeÚ select_setÚ select_anchorÚactivateÚ ValueErrorrøÚSetMenuròÚ set_samples) r`Úconfigured_fontrðrñròÚfontsÚfontÚsÚlc_fontsÚcurrent_font_indexs rcrÒzFontPage.load_font_cfgzs^€ô#×*Ñ*¨4°¸ÓHˆØ# AÑ&×,Ñ,Ó.ˆ Ø# AÑ&ˆ Ø$ QÑ'¨Ñ/ˆ ô”sœ6Ÿ?™?¨4Ó0Ó1Ó2ˆÛˆDØ �M‰M× Ñ ¤ dÕ +ðà �‰×ј9Ô%Ù',Ó-¡u !�A—G‘G•I uˆÐ-ð Ø!)§¡° Ó!:Ð Ø �M‰M× Ñ Ð0Ô 1Ø �M‰M× $Ñ $Ð%7Ô 8Ø �M‰M× 'Ñ 'Ð(:Ô ;Ø �M‰M× "Ñ "Ð#5Ô 6ð � ‰ ×ÑðOà'ô )ð �‰×ј9Ô%Ø ×ÑÕùò.øôò Ù ð úsÂ%FÂ?A=F Æ FÆFcóP—|jj«}tjddd|«|jj«}tjddd|«|j j«}tjddd|«|j «y)zùStore changes to font attributes. When one font attribute changes, save them all, as they are not independent from each other. In particular, when we are overriding the default font, we need to write out everything. rrr(z font-sizez font-boldN)rðr«r¡Ú add_optionrñròr%©r`ÚparamsÚvalues rcrïzFontPage.var_changed_fontœs‚€ð—‘×"Ñ"Ó$ˆÜ×ј6 >°6¸5ÔAØ—‘×"Ñ"Ó$ˆÜ×ј6 >°;ÀÔFØ—‘×"Ñ"Ó$ˆÜ×ј6 >°;ÀÔFØ ×ÑÕrdcóÒ—|jj|jjdk(rtnt «}|j j|j««y)z­Handle selecting a font from the list. Event can result from either mouse click or Up or Down key. Set font_name and example displays to selection. Ú KeyReleaseN) rYr«ÚtypeÚnamerrrðr÷r)r`Úeventr(s rcrôzFontPage.on_fontlist_select«sE€ð �}‰}× Ñ ØŸ*™*Ÿ/™/¨\Ò9•¼vóGˆà �‰×ј4Ÿ:™:›<Õ(rdcó"—|jj«}|jj«rtjntj }||j j«|f}||jd<||jd<y)zýUpdate update both screen samples with the font settings. Called on font initialization and change events. Accesses font_name, font_size, and font_bold Variables. Updates font_sample and highlight page highlight_sample. r(N) rðr«ròrÚBOLDÚNORMALrñrªrÐ)r`r5rðÚ font_weightÚnew_fonts rcr%zFontPage.set_samplesµsm€ð—N‘N×&Ñ&Ó(ˆ Ø%)§^¡^×%7Ñ%7Ô%9”f—k’k¼v¿}¹}ˆ ؘtŸ~™~×1Ñ1Ó3°[ÐAˆØ#+ˆ×Ñ˜Ñ Ø(0ˆ×јfÒ%rdrÏ) rÇrÈrÉrKrÑrÒrïrôr%rËrÌs@rcr{r{s$ø„ôò W7òr òD ò)÷ 1rdr{có–‡—eZdZˆfd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZˆxZS)ryc󼕗t‰|�|«||_|j«|_t |«|_|j«|j«yrÏ) r®rKrxÚwinfo_toplevelÚcdr+ÚstyleÚcreate_page_highlightÚload_theme_cfg©r`rÓrxr¯s €rcrKzHighPage.__init__ÅsJø€Ü ‰Ñ˜Ô ؈Œ Ø×'Ñ'Ó)ˆŒÜ˜6“]ˆŒ Ø ×"Ñ"Ô$Ø ×ÑÕrdc ó¾ ‡—idd“dd“dd“dd“d d “d d “d d“dd“dd“dd“dd“dd“dd“dd“dd“dd “‰_tjt‰«‰j«‰_tjt‰«‰j «‰_t‰«‰_ tjt‰«‰j«‰_ tjt‰«‰j«‰_ tjt‰«‰j«‰_t!‰d!t"d"¬#«}t!‰d!t"d$¬#«}t%|t&d%¬&«}|j(x}‰_|j-d'd(d%d%t.d)t0¬*«|j3d+d,„«|j3d-d.„«d/}|D]\}}|j5t6||«Œt9|j;d0t6«j=««}t?d%|«D]1} |j5| ›d1�| t9tA|««›d2�›d3�d «Œ3‰jD])} | fˆfd4„ } |jC‰j| d5| «Œ+d6|d7<‰jDj-d8d%d9¬:«tG|d8¬;«‰_$tG|«} tK‰jHd<‰jL¬=«‰_'tQ‰jH‰jd>d)¬?«‰_)tU| ‰jd%d@‰jV¬A«‰_,tU| ‰jd)dB‰jV¬A«‰_-‰jj]d%«tK|dC‰j^¬=«‰_0tc|dD¬E«} tU|‰jd%‰jddF¬G«‰_3tU|‰jd)‰jddH¬G«‰_4tQ|‰j d>d>¬I«‰_5tQ|‰jd>d>¬I«‰_6tK|dJ‰jn¬=«‰_8tc|d!¬K«‰_9|jutvdLdLtxtz¬M«|jut|dLdLt~¬N«‰jHjut|dLdLt~¬N«| jut|dLd)¬O«|jut|dLdLtxtz¬M«‰jNjut|txt~dPdQ¬R«‰jRjut|txt~dPdS¬R«‰jXjutvt€¬T«‰jZjut‚t„¬T«‰j`jut†t~dLdL¬U«| jut|t„dLdL¬V«‰jfjut|t„dL¬W«‰jhjut|t„dLd!¬V«‰jjjut|t~dLdL¬U«‰jljut|t~t„dLdL¬X«‰jpjut|t~dLdL¬U«‰jrjut|t~dL¬Y«y>)ZaëReturn frame of widgets for Highlights tab. Enable users to provisionally change foreground and background colors applied to textual tags. Color mappings are stored in complete listings called themes. Built-in themes in idlelib/config-highlight.def are fixed as far as the dialog is concerned. Any theme can be used as the base for a new custom theme, stored in .idlerc/config-highlight.cfg. Function load_theme_cfg() initializes tk variables and theme lists and calls paint_theme_sample() and set_highlight_target() for the current theme. Radiobuttons builtin_theme_on and custom_theme_on toggle var theme_source, which controls if the current set of colors are from a builtin or custom theme. DynOptionMenus builtinlist and customlist contain lists of the builtin and custom themes, respectively, and the current item from each list is stored in vars builtin_name and custom_name. Function paint_theme_sample() applies the colors from the theme to the tags in text widget highlight_sample and then invokes set_color_sample(). Function set_highlight_target() sets the state of the radiobuttons fg_on and bg_on based on the tag and it also invokes set_color_sample(). Function set_color_sample() sets the background color for the frame holding the color selector. This provides a larger visual of the color for the current tag and plane (foreground/background). Note: set_color_sample() is called from many places and is often called more than once when a change is made. It is invoked when foreground or background is selected (radiobuttons), from paint_theme_sample() (theme is changed or load_cfg is called), and from set_highlight_target() (target tag is changed or load_cfg called). Button delete_custom invokes delete_custom() to delete a custom theme from idleConf.userCfg['highlight'] and changes. Button save_custom invokes save_as_new_theme() which calls get_new_theme_name() and create_new() to save a custom theme and its colors to idleConf.userCfg['highlight']. Radiobuttons fg_on and bg_on toggle var fg_bg_toggle to control if the current selected color for a tag is for the foreground or background. DynOptionMenu targetlist contains a readable description of the tags applied to Python source within IDLE. Selecting one of the tags from this list populates highlight_target, which has a callback function set_highlight_target(). Text widget highlight_sample displays a block of text (which is mock Python code) in which is embedded the defined tags and reflects the color attributes of the current theme and changes for those tags. Mouse button 1 allows for selection of a tag and updates highlight_target with that tag value. Note: The font in highlight_sample is set through the config in the fonts tab. In other words, a tag can be selected either from targetlist or by clicking on the sample text within highlight_sample. The plane (foreground/background) is selected via the radiobutton. Together, these two (tag and plane) control what color is shown in set_color_sample() for the current theme. Button set_color invokes get_color() which displays a ColorChooser to change the color for the selected tag/plane. If a new color is picked, it will be saved to changes and the highlight_sample and frame background will be updated. Tk Variables: color: Color of selected target. builtin_name: Menu variable for built-in theme. custom_name: Menu variable for custom theme. fg_bg_toggle: Toggle for foreground/background color. Note: this has no callback. theme_source: Selector for built-in or custom theme. highlight_target: Menu variable for the highlight tag target. Instance Data Attributes: theme_elements: Dictionary of tags for text highlighting. The key is the display name and the value is a tuple of (tag name, display sort order). Methods [attachment]: load_theme_cfg: Load current highlight colors. get_color: Invoke colorchooser [button_set_color]. set_color_sample_binding: Call set_color_sample [fg_bg_toggle]. set_highlight_target: set fg_bg_toggle, set_color_sample(). set_color_sample: Set frame background to target. on_new_color_set: Set new color and add option. paint_theme_sample: Recolor sample. get_new_theme_name: Get from popup. create_new: Combine theme with changes and save. save_as_new_theme: Save [button_save_custom]. set_theme_type: Command for [theme_source]. delete_custom: Activate default [button_delete_custom]. save_new: Save to userCfg['theme'] (is function). Widgets of highlights page frame: (*) widgets bound to self frame_custom: LabelFrame (*)highlight_sample: Text (*)frame_color_set: Frame (*)button_set_color: Button (*)targetlist: DynOptionMenu - highlight_target frame_fg_bg_toggle: Frame (*)fg_on: Radiobutton - fg_bg_toggle (*)bg_on: Radiobutton - fg_bg_toggle (*)button_save_custom: Button frame_theme: LabelFrame theme_type_title: Label (*)builtin_theme_on: Radiobutton - theme_source (*)custom_theme_on: Radiobutton - theme_source (*)builtinlist: DynOptionMenu - builtin_name (*)customlist: DynOptionMenu - custom_name (*)button_delete_custom: Button (*)theme_message: Label zNormal Code or TextÚnormalz Code ContextÚcontextzPython KeywordsÚkeywordzPython DefinitionsÚ definitionzPython BuiltinsÚbuiltinzPython CommentsÚcommentzPython StringsÚstringz Selected TextÚhilitez Found TextÚhitÚCursorÚcursorzEditor BreakpointÚbreakz Shell PromptÚconsolez Error TextÚerrorzShell User OutputÚstdoutzShell User ExceptionÚstderrz Line NumberÚ linenumberr‰z Custom Highlighting rÕz Highlighting Theme rÞ)rÖr‘)Úcourieré r²Úhand2r)r(rNrIrHr�Úhighlightthicknessrãzcó—y©NrO©©Úes rcÚz0HighPage.create_page_highlight..os€°rdz có—yrZr[r\s rcr^z0HighPage.create_page_highlight..ps€¨7rd)")z# Click selects item.rI©Ú rD)zcode context sectionrEr`)z| cursorrNr`)ÚdefrF)Ú rD)ÚfuncrG)z (param): rD)z"Return None."rJ)z var0 = rD)z'string'rJ)z var1 = rD)z 'selected'rK)z var2 = rD)z'found'rL)z var3 = rD)ÚlistrH)Ú(rD)ÚNonerF)z) rD)z breakpoint("line")rO)z rD©z>>>rP)z 3.14**2 rD)z9.8596rRr`rh)z pri rD)ÚnrQ)zt( rD)Ú SyntaxErrorrSr`r¨z.0Údrccó<•—‰jj|«yrÏ)Úhighlight_targetr÷)r5Úelemr`s €rcÚtemz+HighPage.create_page_highlight..tem‹sø€à×%Ñ%×)Ñ)¨$Õ/rdzÚdisabledÚstateúframe_color_set.TFrameÚsolid)r‘rÖ)r?zChoose Color for :©rlrŽN)rXÚ Foreground)ràr0rlrŽÚ BackgroundzSave as New Custom Themez Select : rkza Built-in Theme©ràr0rŽrlza Custom ThemerÜzDelete Custom Theme©r‘rf©rpr�rèrqrrrë©rpr�rèéé)rprqrrr�rèrˆrì©rprrr�rè©rprír�rèrî)rprrrír�rè)rprrrè)DÚtheme_elementsr[r‚rÚvar_changed_builtin_nameÚ builtin_nameÚvar_changed_custom_nameÚ custom_namerÚ fg_bg_toggleÚvar_changed_colorÚcolorÚvar_changed_theme_sourceÚ theme_sourceÚvar_changed_highlight_targetrmr"rr=rrlrÐÚ configurer rrórúrÚlenr«Ú splitlinesÚrangeÚstrÚtag_bindr?r!Úframe_color_setr#Ú get_colorÚbutton_set_colorr3Ú targetlistr)Úset_color_sample_bindingÚfg_onÚbg_onr÷Úsave_as_new_themeÚbutton_save_customr&Úset_theme_typeÚbuiltin_theme_onÚcustom_theme_onÚ builtinlistÚ customlistÚ delete_customÚbutton_delete_customÚ theme_messager„rr rr rrr rr )r`Ú frame_customÚ frame_themeÚ sample_framerlÚ string_tagsrJÚtagÚn_linesÚlinenoÚelementroÚframe_fg_bg_toggleÚtheme_type_titles` rcr@zHighPage.create_page_highlightÍslø€ðjà ! 8ðð ˜Iðð ˜yð ð ! ,ð ð ˜yð ð ˜yðð ˜hðð ˜Xðð ˜%ðð �hðð  ðð ˜Iðð ˜'ðð  ðð # Hð!ð" ˜<ð#ˆÔô&$ŸK™Kܘ$“ ×!>Ñ!>ó@ˆÔä"Ÿ;™;ܘ$“ ×!=Ñ!=ó?ˆÔä& tÓ,ˆÔÜ—[‘[ܘ$“ ×!7Ñ!7ó9ˆŒ ä#ŸK™Kܘ4Ó  $×"?Ñ"?óAˆÔä '§ ¡ ܘ$“ ×!BÑ!Bó!DˆÔô " $°A¼fØ'>ô@ˆ ä  °1¼VØ&<ô>ˆ ô+ؤU¸ô;ˆ à'3×'8Ñ'8Ð8ˆˆtÔ$Ø �‰Ø(°ÀÈ!ܰA¼Dð ô Bð � ‰ Ð%Ñ'8Ô9Ø � ‰ �-Ñ!2Ô3ð9ˆ ó$'‰KˆF�CØ �K‰Kœ˜V SÕ )ð'ä�d—h‘h˜u¤cÓ*×5Ñ5Ó7Ó8ˆÜ˜A˜wÖ'ˆFØ �K‰K˜6˜( "˜ Ø!¤3¤s¨7£|Ó#4Ð"5°QÐ!6Ð7°qÐ9Ø$õ &ð(ð×*Ô*ˆGØ 'õ 0ð �M‰MØ×'Ñ'¨Ñ0Ð2CÀSõ Jð +ð #ˆˆW‰ Ø � ‰ ×ÑÐ5À1Ø$+ð ô -ä$ \Ð9QÔRˆÔÜ" <Ó0ÐÜ &Ø×$Ñ$Ð+?ØŸ™ô!(ˆÔô(Ø×$Ñ$ d×&;Ñ&;¸TØ#$ô&ˆŒô!Ø"¨T×->Ñ->ÀaØ!¨4×+HÑ+HôJˆŒ ô!Ø"¨T×->Ñ->ÀaØ!¨4×+HÑ+HôJˆŒ ð ×Ñ×јaÔ Ü"(ØÐ#=Ø×.Ñ.ô#0ˆÔô! °;Ô?ÐÜ +Ø d×&7Ñ&7¸qØ×+Ñ+Ð2Dô!FˆÔô +Ø d×&7Ñ&7¸qØ×+Ñ+Ð2Bô DˆÔô)ؘT×.Ñ.°¸dôDˆÔä'ؘT×-Ñ-¨t¸TôCˆŒä$*ØÐ"7Ø×*Ñ*ô%,ˆÔ!ô# ;¸AÔ>ˆÔð ×Ñœt¨!°!¼DÄtÐÔLØ×Ñœc¨°¼ÐÔ:à ×Ñ×!Ñ!¤s°¸ÄÐ!ÔCØ×ѤS¨q°qÐÔ9Ø×Ñܘq q´¼Dð ô Bà ×Ñ×"Ñ"¬´D¼qÀqÈqÐ"ÔQØ �‰×Ѥ#¬d¼ÀÈÐÔKØ � ‰ �‰œT¬!ˆÔ,Ø � ‰ �‰œU¬1ˆÔ-Ø ×Ñ×$Ñ$¬&´q¸qÀqÐ$ÔIà×Ѥ3¬q°q¸qÐÔAØ ×Ñ×"Ñ"¬´A¸AÐ"Ô>Ø ×Ñ×!Ñ!¤s´1¸1À1Ð!ÔEØ ×Ñ×Ѥ3¬Q°Q¸QÐÔ?Ø �‰×Ѥ#¬A´a¸aÀaÐÔHØ ×!Ñ!×&Ñ&¬C´a¸aÀaÐ&ÔHØ ×Ñ×ѤS¬q°qÐÕ9rdc ó—|jjtjddddd¬««tj«}|jj «rÁtj dd«}|j«|jj||«tj dd«}|j«|s7|jjd «|jjd «n§|jj||d «n‡tj dd«}|j«|jj||«tj dd«}|j«|jj||d «|j«t|j «}|j"j||d «|j%«|j'«y ) aêLoad current configuration settings for the theme options. Based on the theme_source toggle, the theme is set as either builtin or custom and the initial widget values reflect the current settings from idleConf. Attributes updated: theme_source: Set from idleConf. builtinlist: List of default themes from idleConf. customlist: List of custom themes from idleConf. custom_theme_on: Disabled if there are no custom themes. custom_theme: Message with additional information. targetlist: Create menu from self.theme_elements. Methods: set_theme_type paint_theme_sample set_highlight_target rÚThemeÚdefaultÚboolrÞ©r3r­Ú highlightÚuser©rpú- no custom themes -rN)rˆr÷r0Ú GetOptionÚ CurrentThemer«ÚGetSectionListÚsortrœr$r›rqrƒr�r™rerr“Úpaint_theme_sampleÚset_highlight_target)r`Úcurrent_optionÚ item_listÚ theme_namess rcrAzHighPage.load_theme_cfgÌs˜€ð* ×Ñ×Ñœh×0Ñ0ؘ °ÀôDô Eô"×.Ñ.Ó0ˆà × Ñ × Ñ Ô "Ü ×/Ñ/° ¸;ÓGˆIØ �N‰NÔ Ø × Ñ × $Ñ $ Y°Ô ?Ü ×/Ñ/°¸ ÓDˆIØ �N‰NÔ ÙØ×$Ñ$×*Ñ*¨=Ô9Ø× Ñ ×$Ñ$Ð%;Õ<à—‘×'Ñ'¨ °9¸Q±<Õ@ä ×/Ñ/°¸ ÓDˆIØ �N‰NÔ Ø �O‰O× #Ñ # I¨~Ô >Ü ×/Ñ/° ¸;ÓGˆIØ �N‰NÔ Ø × Ñ × $Ñ $ Y° ¸!± Ô =Ø ×ÑÔä˜4×.Ñ.Ó/ˆ Ø �‰×Ñ  ¨[¸©^Ô<Ø ×ÑÔ!Ø ×!Ñ!Õ#rdcóš—d}|jj«}||vr\tjddd«|vrtj ddd|d«tj ddd|«d|j d<n?tj ddd|«tj dddd «d |j d<|j«y ) z±Process new builtin theme selection. Add the changed theme's name to the changed_items and recreate the sample with the values from the selected theme. )z IDLE ClassiczIDLE Newrr¬r4rÚname2zNew theme, see Helprlr²N)r�r«r0r´r¡r-r r¸)r`r/Ú old_themesr0s rcr€z!HighPage.var_changed_builtin_nameÿs¼€ð 2ˆ Ø×!Ñ!×%Ñ%Ó'ˆØ ˜ Ñ "Ü×!Ñ! &¨'°6Ó:À*ÑLÜ×"Ñ" 6¨7°F¸JÀq¹MÔJÜ × Ñ ˜v w°¸Ô ?Ø)>ˆD× Ñ ˜vÒ &ä × Ñ ˜v w°¸Ô >Ü × Ñ ˜v w°¸Ô <Ø)+ˆD× Ñ ˜vÑ &Ø ×ÑÕ!rdcó”—|jj«}|dk7r)tjddd|«|j «yy)z¥Process new custom theme selection. If a new custom theme is selected, add the name to the changed_items and apply the theme to the sample. r³rr¬r4N)rƒr«r¡r-r¸r.s rcr‚z HighPage.var_changed_custom_namesF€ð × Ñ ×$Ñ$Ó&ˆØ Ð*Ò *Ü × Ñ ˜v w°¸Ô >Ø × #Ñ #Õ %ð +rdcó®—|jj«}tjddd|«|r|j «y|j «y)z“Process toggle between builtin and custom theme. Update the default toggle value and apply the newly selected theme type. rr¬r­N)rˆr«r¡r-r€r‚r.s rcr‡z!HighPage.var_changed_theme_sourcesG€ð ×!Ñ!×%Ñ%Ó'ˆÜ×ј6 7¨I°uÔ=Ù Ø × )Ñ )Õ +à × (Ñ (Õ *rdcó$—|j«y)zProcess change to color choice.N)Úon_new_color_set©r`r/s rcr…zHighPage.var_changed_color*s€à ×ÑÕrdcó$—|j«y)z5Process selection of new target tag for highlighting.N)r¹rÄs rcr‰z%HighPage.var_changed_highlight_target.ó€à ×!Ñ!Õ#rdcóT—|jj«r:d|jd<d|jd<|jj d«yd|jd<|j j d«d|jd<|jj d«y)a¦Set available screen options based on builtin or custom theme. Attributes accessed: theme_source Attributes updated: builtinlist customlist button_delete_custom custom_theme_on Called from: handler for builtin_theme_on and custom_theme_on delete_custom create_new load_theme_cfg rDrqrpr²©z !disabledN)rˆr«rœr�rŸrqr›ržs rcr™zHighPage.set_theme_type2sŽ€ð$ × Ñ × Ñ Ô "Ø(0ˆD× Ñ ˜WÑ %Ø'1ˆD�O‰O˜GÑ $Ø × %Ñ %× +Ñ +¨MÕ :à(2ˆD× Ñ ˜WÑ %Ø × Ñ × &Ñ & ~Ô 6Ø'/ˆD�O‰O˜GÑ $Ø × %Ñ %× +Ñ +¨NÕ ;rdcóÈ—|jj«}|jj|jdd«}t j |d|z|¬«\}}|r||k7ry|jj«rCd}|j|«}|sy|j|«|jj|«y|jj|«yyy)a¢Handle button to select a new color for the target tag. If a new color is selected while using a builtin theme, a name must be supplied to create a custom theme. Attributes accessed: highlight_target frame_color_set theme_source Attributes updated: color Methods: get_new_theme_name create_new r?Ú backgroundzPick new color for : )rLrOÚ initialcolorz_Your changes will be saved as a new Custom Theme. Enter a name for your new Custom Theme below.N) rmr«r?Úlookupr�r.ÚaskcolorrˆÚget_new_theme_nameÚ create_newr†r÷)r`ÚtargetÚ prev_colorÚ rgbTupletÚ color_stringÚmessageÚ new_themes rcr‘zHighPage.get_colorNs΀ð$×&Ñ&×*Ñ*Ó,ˆØ—Z‘Z×&Ñ& t×';Ñ';¸GÑ'DØ'3ó5ˆ ä".×"7Ñ"7ØÐ#:¸6Ñ#AØ'ô#)ш �<ñ ˜\¨ZÒ7à× Ñ ×$Ñ$Ô&ðK�à ×3Ñ3°GÓ<� Ù Øà—O‘O IÔ.Ø—J‘J—N‘N <Õ0à— ‘ —‘˜|Õ,ð8ˆÔBØ ×Ñ×јaÔ Ø ×ÑÕrdcó¤—|jj«dk(rR|jjd«|jjd«|j j d«nQ|jjd«|jjd«|j j d«|j«y)ahSet fg/bg toggle and color based on highlight tag target. Instance variables accessed: highlight_target Attributes updated: fg_on bg_on fg_bg_toggle Methods: set_color_sample Called from: var_changed_highlight_target load_theme_cfg rMr²rÞrÈN)rmr«r•rqr–r„r÷Úset_color_sampleržs rcr¹zHighPage.set_highlight_targetºs—€ð$ × Ñ × $Ñ $Ó &¨(Ò 2Ø �J‰J× Ñ ˜]Ô +Ø �J‰J× Ñ ˜]Ô +Ø × Ñ × !Ñ ! !Õ $à �J‰J× Ñ ˜^Ô ,Ø �J‰J× Ñ ˜^Ô ,Ø × Ñ × !Ñ ! !Ô $Ø ×ÑÕrdcó$—|j«y)zrChange color sample based on foreground/background toggle. Methods: set_color_sample N)rî)r`Úargss rcr”z!HighPage.set_color_sample_bindingÖs€ð ×ÑÕrdcó—|j|jj«}|jj«rdnd}|jj ||«}|j jd|¬«y)aSet the color of the frame background to reflect the selected target. Instance variables accessed: theme_elements highlight_target fg_bg_toggle highlight_sample Attributes updated: frame_color_set rØrÊrrr×N)rrmr«r„rÐÚtag_cgetr?rŠ)r`r¥rÜr†s rcrîzHighPage.set_color_sampleÞsk€ð×!Ñ! $×"7Ñ"7×";Ñ";Ó"=Ñ>ˆØ $× 1Ñ 1× 5Ñ 5Ô 7‘ ¸\ˆØ×%Ñ%×.Ñ.¨s°EÓ:ˆØ � ‰ ×ÑÐ5À%ÐÕHrdcó —|jj«r|jj«}n|jj«}|jD] }|j|}t j ||«}|dk(rt j |d«d|d<|tdvr0td|}|dz|vr ||dz|d<|dz|vr ||dz|d<|jj|fi|¤ŽŒ¢|j«y) aÚApply the theme colors to each element tag in the sample text. Instance attributes accessed: theme_elements theme_source builtin_name custom_name Attributes updated: highlight_sample: Set the tag elements to the theme. Methods: set_color_sample Called from: var_changed_builtin_name var_changed_custom_name load_theme_cfg rNrDrÊr°z -foregroundrØz -backgroundN) rˆr«r�rƒrr0Ú GetHighlightr¡rÐrÚrî)r`rÞÚ element_titler¨ÚcolorsÚ theme_dicts rcr¸zHighPage.paint_theme_sampleðs#€ð( × Ñ × Ñ Ô "Ø×%Ñ%×)Ñ)Ó+‰Eà×$Ñ$×(Ñ(Ó*ˆEØ!×0Ô0ˆMØ×)Ñ)¨-Ñ8ˆGÜ×*Ñ*¨5°'Ó:ˆFؘ(Ò"Ü'/×'<Ñ'<ؘxó()Ø)5ñ(7��|Ñ$𜠠Ñ,Ñ,Ü$ [Ñ1°%Ñ8� ؘ]Ñ*¨jÑ8Ø+5°gÀ Ñ6MÑ+N�F˜<Ñ(ؘ]Ñ*¨jÑ8Ø+5°gÀ Ñ6MÑ+N�F˜<Ñ(Ø ,ˆD× !Ñ !× ,Ñ ,¨WÑ ?¸Ó ?ð1ð ×ÑÕrdcó¨—tjdj|«|D]+}||}tjdj|||«Œ-y)zœSave a newly created theme to idleConf. theme_name - string, the name of the new theme theme - dictionary containing the new theme r°N©r0ÚuserCfgÚ AddSectionÚ SetOption)r`rêrÞr¨r0s rcrèzHighPage.save_newsM€ô ×јÑ%×0Ñ0°Ô<ÛˆGؘ'‘NˆEÜ × Ñ ˜[Ñ )× 3Ñ 3°JÀÈÕ Oñrdcó,—tj|i|¤ŽSrÏ©r/Úaskyesno©r`rðÚkwargss rcrÿzHighPage.askyesno#ó€ä×"Ñ" DÐ3¨FÑ3Ð3rdcój—|jj«}d}|jd||z|¬«sy|jj «t j d|«tjdd«}|j«|s8|jjd«|jj|d«n|jj||d «|jjtj d j#d d ««|j$jtj d j#d d ««t j'«|j(j+«|jj-«|j/«y)a!Handle event to delete custom theme. The current theme is deactivated and the default theme is activated. The custom theme is permanently removed from the config file. Attributes accessed: custom_name Attributes updated: custom_theme_on customlist theme_source builtin_name Methods: deactivate_current_config save_all_changed_extensions activate_config_changes set_theme_type z.Are you sure you wish to delete the theme %r ?z Delete Theme©rLNr°r±r²r³rrr¬r­r4)rƒr«rÿr>r r¡Údelete_sectionr0r¶r·r›rqr�r$rˆr÷Ú defaultCfgÚGetr�r¢rxr£r¤r™)r`rêÚdelmsgr»s rcržzHighPage.delete_custom'sN€ð,×%Ñ%×)Ñ)Ó+ˆ ØAˆØ�}‰}Ø ¨*Ñ!4¸TðôCà Ø �‰×)Ñ)Ô+ä×ј{¨JÔ7ä×+Ñ+¨F°KÓ@ˆ Ø�‰ÔÙØ × Ñ × &Ñ & }Ô 5Ø �O‰O× #Ñ # IÐ/EÕ Fà �O‰O× #Ñ # I¨y¸©|Ô <à ×Ñ×Ñœh×1Ñ1°&Ñ9×=Ñ=¸gÀyÓQÔRØ ×Ñ×Ñœh×1Ñ1°&Ñ9×=Ñ=¸gÀvÓNÔOä×ÑÔØ � ‰ ×0Ñ0Ô2Ø �‰×'Ñ'Ô)Ø ×ÑÕrd)rÇrÈrÉrKr@rAr€r‚r‡r…r‰r™r‘rÃrÎr—rÏr¹r”rîr¸rèrÿržrËrÌs@rcryryÃsuø„ôò}:ò~1$òf"ò& &ò +ò ò$ò<ò8$-òL Iòò ,ò&òP ò8 òIò$& òP Pò4ö-rdryc󈇗eZdZˆfd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zed„«Zd„Zd„ZˆxZS)r|c󜕗t‰|�|«||_|j«|_|j «|j «yrÏ)r®rKrxr=r>Úcreate_page_keysÚ load_key_cfgrBs €rcrKzKeysPage.__init__Ys?ø€Ü ‰Ñ˜Ô ؈Œ Ø×'Ñ'Ó)ˆŒØ ×ÑÔØ ×ÑÕrdcóž —tjt|«|j«|_tjt|«|j «|_tjt|«|j«|_ tjt|«|j«|_ t|dtd¬«}t|dtd¬«}t|«}t|d¬«}t!|«}t!|t"¬«}t%|t&t&¬«|_|j(j+d |j,«|j(j.|d <|j(j0|d <|j2|j(d <|j2|j(d <t5|d |j6d¬«|_t;d«D�cgc]}t|dd¬«‘Œ}}t=|d|jd|j>d¬«|_ t=|d|jd|j>d¬«|_!tE|d|jdd¬«|_#tE|d|j dd¬«|_$t5|dd|jJ¬«|_&t5|dd|jN¬«|_(t|dd¬«|_)|jUtVddtXtZ¬«|jUtVddtZ¬«|j8jUtVt\dd¬«|jUt^ddtXtZ¬«|jadd¬ «|jcdd¬ «|jedddtf¬!«|j(jeddth¬"«|jeddtj¬"«|jeddtl¬"«|j@jeddtftjz¬"«|jBjeddtftjz¬"«|jFjeddth¬"«|jHjeddth¬"«|jRjeddthdd¬#«|jLjUt^t\d$d¬%«|jPjUt^t\d$d¬%«|djUtntZd$¬&«|djUtnt\d$d¬'«ycc}w)(aíReturn frame of widgets for Keys tab. Enable users to provisionally change both individual and sets of keybindings (shortcut keys). Except for features implemented as extensions, keybindings are stored in complete sets called keysets. Built-in keysets in idlelib/config-keys.def are fixed as far as the dialog is concerned. Any keyset can be used as the base for a new custom keyset, stored in .idlerc/config-keys.cfg. Function load_key_cfg() initializes tk variables and keyset lists and calls load_keys_list for the current keyset. Radiobuttons builtin_keyset_on and custom_keyset_on toggle var keyset_source, which controls if the current set of keybindings are from a builtin or custom keyset. DynOptionMenus builtinlist and customlist contain lists of the builtin and custom keysets, respectively, and the current item from each list is stored in vars builtin_name and custom_name. Button delete_custom_keys invokes delete_custom_keys() to delete a custom keyset from idleConf.userCfg['keys'] and changes. Button save_custom_keys invokes save_as_new_key_set() which calls get_new_keys_name() and create_new_key_set() to save a custom keyset and its keybindings to idleConf.userCfg['keys']. Listbox bindingslist contains all of the keybindings for the selected keyset. The keybindings are loaded in load_keys_list() and are pairs of (event, [keys]) where keys can be a list of one or more key combinations to bind to the same event. Mouse button 1 click invokes on_bindingslist_select(), which allows button_new_keys to be clicked. So, an item is selected in listbindings, which activates button_new_keys, and clicking button_new_keys calls function get_new_keys(). Function get_new_keys() gets the key mappings from the current keyset for the binding event item that was selected. The function then displays another dialog, GetKeysDialog, with the selected binding event and current keys and allows new key sequences to be entered for that binding event. If the keys aren't changed, nothing happens. If the keys are changed and the keyset is a builtin, function get_new_keys_name() will be called for input of a custom keyset name. If no name is given, then the change to the keybinding will abort and no updates will be made. If a custom name is entered in the prompt or if the current keyset was already custom (and thus didn't require a prompt), then idleConf.userCfg['keys'] is updated in function create_new_key_set() with the change to the event binding. The item listing in bindingslist is updated with the new keys. Var keybinding is also set which invokes the callback function, var_changed_keybinding, to add the change to the 'keys' or 'extensions' changes tracker based on the binding type. Tk Variables: keybinding: Action/key bindings. Methods: load_keys_list: Reload active set. create_new_key_set: Combine active keyset and changes. set_keys_type: Command for keyset_source. save_new_key_set: Save to idleConf.userCfg['keys'] (is function). deactivate_current_config: Remove keys bindings in editors. Widgets for KeysPage(frame): (*) widgets bound to self frame_key_sets: LabelFrame frames[0]: Frame (*)builtin_keyset_on: Radiobutton - var keyset_source (*)custom_keyset_on: Radiobutton - var keyset_source (*)builtinlist: DynOptionMenu - var builtin_name, func keybinding_selected (*)customlist: DynOptionMenu - var custom_name, func keybinding_selected (*)keys_message: Label frames[1]: Frame (*)button_delete_custom_keys: Button - delete_custom_keys (*)button_save_custom_keys: Button - save_as_new_key_set frame_custom: LabelFrame frame_target: Frame target_title: Label scroll_target_y: Scrollbar scroll_target_x: Scrollbar (*)bindingslist: ListBox - on_bindingslist_select (*)button_new_keys: Button - get_new_keys & ..._name r‰z Custom Key Bindings rÕz Key Set zAction - Key(s)rk©Úorient)r�rÚrÛrŽrÝÚxscrollcommandzGet New Keys for Selectionrp)rlrŽrqr)rhr‘rÞzUse a Built-in Key SetrwzUse a Custom Key SetNrÜzDelete Custom Key SetrtzSave as New Custom Key Setrxrfryrër}rä)rærçÚ columnspanrj©rærçrj)rærçrjr�rèT)rprrrqr�©rprrrq)rprrrqrè)8r[r‚rr€r�r‚rƒrÚvar_changed_keyset_sourceÚ keyset_sourceÚvar_changed_keybindingÚ keybindingr"rr!r&r*rrr Ú bindingslistróÚon_bindingslist_selectröÚxviewr÷r#Ú get_new_keysÚbutton_new_keysr�r)Ú set_keys_typeÚbuiltin_keyset_onÚcustom_keyset_onr3rœr�Údelete_custom_keysÚbutton_delete_custom_keysÚsave_as_new_key_setÚbutton_save_custom_keysÚ keys_messager„r r rrrrûrürurrrrr ) r`r¡Úframe_key_setsÚ frame_targetÚ target_titleÚscroll_target_yÚscroll_target_xÚiÚframess rcr zKeysPage.create_page_keys`sš€ôd$ŸK™Kܘ$“ ×!>Ñ!>ó@ˆÔä"Ÿ;™;ܘ$“ ×!=Ñ!=ó?ˆÔä$Ÿ[™[ܘ4Ó  $×"@Ñ"@óBˆÔä!Ÿ+™+ܘ$“ ×!<Ñ!<ó>ˆŒô "Ø !¬FØ,ô.ˆ ô$Ø !¬F¸ôFˆô˜\Ó*ˆ ܘ\Ð0AÔBˆ Ü# LÓ1ˆÜ# L¼ÔDˆÜ#ج¼uôFˆÔà ×Ñ×ÑÐ2Ø#×:Ñ:ô <à%)×%6Ñ%6×%<Ñ%<ˆ˜ Ñ"Ø%)×%6Ñ%6×%<Ñ%<ˆ˜ Ñ"Ø.=×.AÑ.Aˆ×ÑÐ*Ñ+Ø.=×.AÑ.Aˆ×ÑÐ*Ñ+Ü%ØÐ#?Ø×)Ñ)°ô =ˆÔô ! œ8ó%Ù#�aô˜°¸qÖAØ#ð ð%ä!,Ø�q‘  D×$6Ñ$6¸aØ×*Ñ*Ð1Iô"KˆÔô!,Ø�q‘  D×$6Ñ$6¸aØ×*Ñ*Ð1Gô!IˆÔô)Ø�q‘ ˜4×,Ñ,¨d¸DôBˆÔä'Ø�q‘ ˜4×+Ñ+¨T¸4ôAˆŒä)/Ø�q‘ Ð 7Ø×/Ñ/ô*1ˆÔ&ô(.Ø�q‘ Ð <Ø×0Ñ0ô(2ˆÔ$ô" &¨¡)¸Ô;ˆÔð ×Ñœv¨A°A¼dÌÐÔNØ×Ѥ¨a°a¼dÐÔCà ×Ñ×!Ñ!¤v´A¸AÀAÐ!ÔFØ×Ñœt¨!°!¼DÄtÐÔLà×$Ñ$ Q¨qÐ$Ô1Ø×!Ñ! !¨AÐ!Ô.Ø×јa¨°aÄÐÔBØ ×Ñ×Ñ 1¨Q´tÐÔ<Ø×Ñ ¨1´RÐÔ8Ø×Ñ ¨1´RÐÔ8à ×Ñ×#Ñ#¨°!¼A¼b¹DÐ#ÔAØ ×Ñ×"Ñ" q°¼1¼R¹4Ð"Ô@Ø ×Ñ×Ñ !¨A´dÐÔ;Ø �‰×Ñ ¨1´TÐÔ:Ø ×Ñ×Ñ 1¨Q´tÀ!È!ÐÔLØ ×&Ñ&×+Ñ+´¼AÀdÐQRÐ+ÔSØ ×$Ñ$×)Ñ)¬t¼!ÀDÈqÐ)ÔQ؈q‰ �‰œC¤d°4ˆÔ8؈q‰ �‰œC¤a°¸1ˆÕ=ùòW%sÇ#U c óÞ—|jjtjddddd¬««tj«}|jj «rÁtj dd«}|j«|jj||«tj dd«}|j«|s7|jjd «|jjd «n¶|jj||d «n–tj dd«}|j«|jj||«tj dd«}|j«|jj|tj««|j«tj«}|j!|«y ) z?Load current configuration settings for the keybinding options.rÚKeysr­r®rÞr¯Úkeysr±r²ú- no custom keys -rN)rr÷r0r´Ú CurrentKeysr«r¶r·rœr$rrqrƒr�Ú default_keysrÚload_keys_list)r`rºr»Ú keyset_names rcr zKeysPage.load_key_cfgsy€ð ×Ñ×Ñœx×1Ñ1ؘ  °Àô Cô Dô"×-Ñ-Ó/ˆà × Ñ × !Ñ !Ô #Ü ×/Ñ/° ¸6ÓBˆIØ �N‰NÔ Ø × Ñ × $Ñ $ Y°Ô ?Ü ×/Ñ/°¸Ó?ˆIØ �N‰NÔ ÙØ×%Ñ%×+Ñ+¨MÔ:Ø× Ñ ×$Ñ$Ð%9Õ:à—‘×'Ñ'¨ °9¸Q±<Õ@ä ×/Ñ/°¸Ó?ˆIØ �N‰NÔ Ø �O‰O× #Ñ # I¨~Ô >Ü ×/Ñ/° ¸6ÓBˆIØ �N‰NÔ Ø × Ñ × $Ñ $ Y´×0EÑ0EÓ0GÔ HØ ×ÑÔä×*Ñ*Ó,ˆ Ø ×јKÕ(rdcóœ—d}|jj«}||vr\tjddd«|vrtj ddd|d«tj ddd|«d|j d<n?tj ddd|«tj dddd «d |j d<|j|«y ) z%Process selection of builtin key set.)zIDLE Classic WindowszIDLE Classic UnixzIDLE Classic MaczIDLE Classic OSXrr-r4rr¾zNew key set, see Helprlr²N)r�r«r0r´r¡r-r$r2)r`r/Úold_keysr0s rcr€z!KeysPage.var_changed_builtin_namesÀ€ð ˆð ×!Ñ!×%Ñ%Ó'ˆØ ˜Ñ Ü×!Ñ! &¨&°&Ó9ÀÑIÜ×"Ñ" 6¨6°6¸8ÀA¹;ÔGÜ × Ñ ˜v v¨w¸Ô >Ø(?ˆD× Ñ ˜fÒ %ä × Ñ ˜v v¨v°uÔ =Ü × Ñ ˜v v¨w¸Ô ;Ø(*ˆD× Ñ ˜fÑ %Ø ×јEÕ"rdcó–—|jj«}|dk7r*tjddd|«|j |«yy)z$Process selection of custom key set.r/rr-r4N)rƒr«r¡r-r2r.s rcr‚z KeysPage.var_changed_custom_name3sF€à× Ñ ×$Ñ$Ó&ˆØ Ð(Ò (Ü × Ñ ˜v v¨v°uÔ =Ø × Ñ  Õ &ð )rdcó®—|jj«}tjddd|«|r|j «y|j «y)z:Process toggle between builtin key set and custom key set.rr-r­N)rr«r¡r-r€r‚r.s rcrz"KeysPage.var_changed_keyset_source:sE€à×"Ñ"×&Ñ&Ó(ˆÜ×ј6 6¨9°eÔ<Ù Ø × )Ñ )Õ +à × (Ñ (Õ *rdcóŒ—|jj«}|jj«}|jjt«j «d}t j|«rtjd|||«yt j|«}|dz}tjd|||«y)zStore change to a keybinding.rr.Ú _cfgBindingsÚ extensionsN) rr«rƒrrÚsplitr0Ú IsCoreBindingr¡r-ÚGetExtnNameForEvent)r`r/r0Úkey_setr5Úext_nameÚext_keybind_sections rcrzKeysPage.var_changed_keybindingCsž€à—‘×#Ñ#Ó%ˆØ×"Ñ"×&Ñ&Ó(ˆØ×!Ñ!×%Ñ%¤fÓ-×3Ñ3Ó5°aÑ8ˆÜ × !Ñ ! %Ô (Ü × Ñ ˜v w°°uÕ =ä×3Ñ3°EÓ:ˆHØ"*¨^Ñ";Ð Ü × Ñ ˜|Ð-@À%ÈÕ OrdcóT—|jj«r:d|jd<d|jd<|jj d«yd|jd<|j j d«d|jd<|jj d«y)z@Set available screen options based on builtin or custom key set.rDrqrpr²rÈN)rr«rœr�r!rqrržs rcrzKeysPage.set_keys_typeOsŒ€à × Ñ × !Ñ !Ô #Ø(0ˆD× Ñ ˜WÑ %Ø'1ˆD�O‰O˜GÑ $Ø × *Ñ *× 0Ñ 0°Õ ?à(2ˆD× Ñ ˜WÑ %Ø × !Ñ !× 'Ñ '¨Ô 7Ø'/ˆD�O‰O˜GÑ $Ø × *Ñ *× 0Ñ 0°Õ @rdcó¬—|jjt«}|jj|«}|j «d}|j j«r|j j«}n|jj«}tj«}|tdvr)td|}|D]}||j «||<Œt|j««}t|d||«j} | �r|j j«r]d} |j| «} | s7|jj!|«|jj#|«y|j%| «|jj'|«|jj)||dz| z«|jj!|«|jj#|«|j*j-| «y|jj!|«|jj#|«y)a^Handle event to change key binding for selected line. A selection of a key/binding in the list of current bindings pops up a dialog to enter a new binding. If the current key set is builtin and a binding has changed, then a name for a custom key set needs to be entered for the change to be applied. rr.z Get New KeyszcYour changes will be saved as a new Custom Key Set. Enter a name for your new Custom Key Set below.Nú - )rrrr«r;rr�rƒr0ÚGetCurrentKeySetr¡reÚvaluesr2râÚget_new_keys_namer r!Úcreate_new_key_setÚdeleterúrr÷) r`Ú list_indexÚbindingÚ bind_nameÚcurrent_key_set_nameÚcurrent_bindingsÚkey_set_changesr5Úcurrent_key_sequencesÚnew_keysrÔÚ new_keysets rcrzKeysPage.get_new_keys[s÷€ð×&Ñ&×,Ñ,¬VÓ4ˆ Ø×#Ñ#×'Ñ'¨ Ó3ˆØ—M‘M“O AÑ&ˆ Ø × Ñ × !Ñ !Ô #Ø#'×#4Ñ#4×#8Ñ#8Ó#:Ñ à#'×#3Ñ#3×#7Ñ#7Ó#9Ð Ü#×4Ñ4Ó6ÐØ ¤7¨6¡?Ñ 2Ü% f™oÐ.BÑCˆOÛ(�Ø*9¸%Ñ*@×*FÑ*FÓ*HÐ  Ò'ð)ä $Ð%5×%<Ñ%<Ó%>Ó ?ÐÜ   ~°yØ%ó'ß'-¡vð â Ø×!Ñ!×%Ñ%Ô'ðN�à!×3Ñ3°GÓ<� Ù!Ø×%Ñ%×0Ñ0°Ô<Ø×%Ñ%×3Ñ3°JÔ?Øà×+Ñ+¨JÔ7Ø × Ñ × $Ñ $ ZÔ 0Ø × Ñ × $Ñ $ Z°¸5±ÀÑ1IÔ JØ × Ñ × (Ñ (¨Ô 4Ø × Ñ × +Ñ +¨JÔ 7Ø �O‰O× Ñ  Õ )à × Ñ × (Ñ (¨Ô 4Ø × Ñ × +Ñ +¨JÕ 7rdcó�—tjdd«tjdd«z}t|d||«j}|S)z)Return new key set name from query popup.r±r.r­zNew Custom Key Setrá)r`rÔrãrQs rcrFzKeysPage.get_new_keys_name‡sL€ä×-Ñ-¨f°fÓ=Ü×'Ñ'¨ °6Ó:ñ;ˆ ä ØÐ*¨G°ZóAßAGÁð àÐrdcóN—|jd«}|r|j|«yy)z@Prompt for name of new key set and save changes using that name.zNew Key Set Name:N)rFrG)r`Ú new_keys_names rcr"zKeysPage.save_as_new_key_set�s)€à×.Ñ.Ð/BÓCˆ Ù Ø × #Ñ # MÕ 2ð rdcó:—|jjd«y)z6Activate button to assign new keys to selected action.rÈN)rrq©r`r5s rcrzKeysPage.on_bindingslist_select•s€à ×Ñ×"Ñ" >Õ2rdcód—|jj«r|jj«}n|jj«}t j |«}i}|D] }|dd}dj ||«}|||<Œ"|tdvrtd|}|D] }||||<Œ |j||«t jdd«} | j«|jj| |«|jjd«|j«y)z¹Create a new custom key set with the given name. Copy the bindings/keys from the previously active keyset to the new keyset and activate the new custom keyset. r‰éþÿÿÿrcr.r±rN)rr«r�rƒr0Ú GetCoreKeysÚjoinr¡Úsave_new_key_setr¶r·r�r$r÷r) r`Únew_key_set_nameÚprev_key_set_nameÚ prev_keysrPr5Ú event_namerJrNÚcustom_key_lists rcrGzKeysPage.create_new_key_set™s#€ð × Ñ × !Ñ !Ô #Ø $× 1Ñ 1× 5Ñ 5Ó 7Ñ à $× 0Ñ 0× 4Ñ 4Ó 6Ð Ü×(Ñ(Ð):Ó;ˆ ؈ۈEؘq ˜ˆJØ—h‘h˜y¨Ñ/Ó0ˆGØ#*ˆH�ZÒ ð𠤨¡Ñ /Ü% f™oÐ.?Ñ@ˆOÛ(�Ø"1°%Ñ"8�˜’ð)ð ×ÑÐ.°Ô9ä"×1Ñ1°&¸&ÓAˆØ×ÑÔØ �‰×Ñ Ð1AÔBØ ×Ñ×јqÔ!Ø ×ÑÕrdcó¢—d}|jj«r!d}|jjt«}t j |«}t |«}|j«|jjdt«|D]i}dj||«}|dd}|tdvr|td|vrtd||}|jjt|dz|z«Œk|rR|jj«|jj|«|jj|«y y ) z–Reload the list of action/key binding pairs for the active key set. An action/key binding can be selected to change the key binding. FTrrcr‰rXr.rCN)rÚ curselectionrrr0Ú GetKeySetrer·rHrrZr¡rúrr r!)r`r3ÚreselectrIÚkeysetÚ bind_namesrKÚkeys rcr2zKeysPage.load_keys_list·s,€ð ˆØ × Ñ × )Ñ )Ô +؈HØ×*Ñ*×0Ñ0´Ó8ˆJÜ×#Ñ# KÓ0ˆä˜&“\ˆ Ø�‰ÔØ ×Ñ× Ñ  ¤CÔ(Û#ˆIØ—(‘(˜6 )Ñ,Ó-ˆCØ! ! B˜ˆIØœg f™oÑ-न¡° Ñ <Ñ<Ü! &™/¨+Ñ6°yÑA�CØ × Ñ × $Ñ $¤S¨)°E©/¸#Ñ*=Õ >ð$ñ Ø × Ñ × !Ñ ! *Ô -Ø × Ñ × (Ñ (¨Ô 4Ø × Ñ × +Ñ +¨JÕ 7ð rdcó¨—tjdj|«|D]+}||}tjdj|||«Œ-y)aQSave a newly created core key set. Add keyset to idleConf.userCfg['keys'], not to disk. If the keyset doesn't exist, it is created. The binding/keys are taken from the keyset argument. keyset_name - string, the name of the new key set keyset - dictionary containing the new keybindings r.Nrù)r3rer5r0s rcr[zKeysPage.save_new_key_setÒsM€ô ×Ñ˜Ñ ×+Ñ+¨KÔ8ÛˆEؘ5‘MˆEÜ × Ñ ˜VÑ $× .Ñ .¨{¸EÀ5Õ Iñrdcó,—tj|i|¤ŽSrÏrþrs rcrÿzKeysPage.askyesnoârrdcó–—|jj«}d}|jd||z|¬«sy|jj «t j d|«tjdd«}|j«|s8|jjd«|jj|d«n|jj||d «|jjtj d j#d d ««|j$jtj d j#d d «xstj&««t j)«|j*j-«|jj/«|j1«y)záHandle event to delete a custom key set. Applying the delete deactivates the current configuration and reverts to the default. The custom key set is permanently deleted from the config file. z0Are you sure you wish to delete the key set %r ?zDelete Key SetrNr.r±r²r/rrr-r­r4)rƒr«rÿr>r r¡rr0r¶r·rrqr�r$rr÷rrr�r1r¢rxr£r¤r)r`r3rr»s rcr zKeysPage.delete_custom_keysæsd€ð×&Ñ&×*Ñ*Ó,ˆ ØCˆØ�}‰}Ø  6¨KÑ#7ÀðôFà Ø �‰×)Ñ)Ô+ä×јv {Ô3ä×+Ñ+¨F°FÓ;ˆ Ø�‰ÔÙØ × !Ñ !× 'Ñ '¨ Ô 6Ø �O‰O× #Ñ # IÐ/CÕ Dà �O‰O× #Ñ # I¨y¸©|Ô <à ×Ñ×Ñœx×2Ñ2°6Ñ:ß #¡ F¨IÓ 6ô 8à ×Ñ×Ñœh×1Ñ1°&Ñ9×=Ñ=¸fÀfÓMò9Ü!)×!6Ñ!6Ó!8ô :ô ×ÑÔØ � ‰ ×0Ñ0Ô2Ø �‰×'Ñ'Ô)Ø ×ÑÕrd)rÇrÈrÉrKr r r€r‚rrrrrFr"rrGr2Ú staticmethodr[rÿr rËrÌs@rcr|r|Wsnø„ôò^>ò@)ò>#ò('ò+ò Pò Aò*8òXò3ò 3òò<8ð6ñ Jóð Jò4ö rdr|có0‡—eZdZˆfd„Zd„Zd„Zd„ZˆxZS)r~có„•—t‰|�|«|j«|j«|j «yrÏ)r®rKÚinit_validatorsÚcreate_page_windowsÚload_windows_cfg©r`rÓr¯s €rcrKzWinPage.__init__ s4ø€Ü ‰Ñ˜Ô à ×ÑÔØ × Ñ Ô"Ø ×ÑÕrdcój‡—tjd«Šˆfd„}|j|«df|_y)Nú[0-9]*có*•—‰j|«duS©z+Return 's is blank or contains only digits'N©Ú fullmatch©r)Údigits_or_empty_res €rcÚis_digits_or_emptyz3WinPage.init_validators..is_digits_or_emptyóø€à%×/Ñ/°Ó2¸$Ð>Ð >rdú%P©ÚreÚcompileÚregisterÚ digits_only©r`rzrys @rcrnzWinPage.init_validatorsó0ø€ÜŸZ™Z¨ Ó2Ðô ?ð!ŸM™MÐ*<Ó=¸tÐEˆÕrdc ój—tjt|«d«|_tjt |«d«|_tjt |«d«|_tjt |«d«|_tjt|«d«|_ tjt |«d«|_ tjt |«d«|_ tjt |«d«|_ tjt|«d «|_ tjt |«d «|_t|d t d ¬ «}t#|d¬«}t%|d¬«}t'||jdd¬«|_t'||jdd¬«|_t#|d¬«}t%|d¬«}t%|d¬«}t-||j d|j.d¬«|_t%|d¬«}t-||j d|j.d¬«|_t#|d¬«}t%|d¬«} t5||jddd |j.d¬«|_t%|d"¬«} tA|d#|j¬$«|_!t#|d¬«} t%| d%¬«} t-| |jd&|j.d¬«|_"t#|d¬«} t%| d'¬«}tG| |jd(d)d*d(«|_$t#|d¬«}t%|d+¬«}t-||jd&|j.d¬«|_%tA|d,|j¬$«|_&t#|d¬«}t%|d-¬«}t-||jd.|j.d¬«|_'|jQtRd/d/tTtV¬0«|jQtRd/dtX¬1«|jQtZt\d/d/¬2«|j*jQt^t\d/d/¬2«|j(jQt^t\d/d/¬2«|jQtRd/dtX¬1«|jQtZt\d/d/¬2«|j2jQt^t`dd/¬2«|jQt^t`d/¬3«|j0jQt^t`dd/¬2«|jQt^t`d/¬3«|jQtRd/dtX¬1«| jQtZt\d/¬4«|j6jQtZt\d¬4«|jBjQt^t`d5d/¬2«| jQtRd/dtX¬1«| jQtZt\d/d/¬2«|jDjQtRdd/¬6«| jQtRd/dtX¬1«|jQtZt\d/d/¬2«|jHjQtRdd/¬6«|jQtRd/dtX¬1«|jQtZt\d/¬4«|jLjQt^t`d5d/¬2«|jJjQtRt\d5d/¬2«|jQtRd/dtX¬1«|jQtZt\d/d/¬2«|jNjQtRdd/¬6«y7#t8$r6t;||jdt=t?dd ««d¬!«|_Y�ŒwxYw)8a1Return frame of widgets for Windows tab. Enable users to provisionally change general window options. Function load_windows_cfg initializes tk variable idleConf. Radiobuttons startup_shell_on and startup_editor_on set var startup_edit. Entry boxes win_width_int and win_height_int set var win_width and win_height. Setting var_name invokes the default callback that adds option to changes. Widgets for WinPage(Frame): > vars, bound to self frame_window: LabelFrame frame_run: Frame startup_title: Label startup_editor_on: Radiobutton > startup_edit startup_shell_on: Radiobutton > startup_edit frame_win_size: Frame win_size_title: Label win_width_title: Label win_width_int: Entry > win_width win_height_title: Label win_height_int: Entry > win_height frame_cursor: Frame indent_title: Label indent_chooser: Spinbox > indent_spaces blink_on: Checkbutton > cursor_blink frame_autocomplete: Frame auto_wait_title: Label auto_wait_int: Entry > autocomplete_wait frame_paren1: Frame paren_style_title: Label paren_style_type: OptionMenu > paren_style frame_paren2: Frame paren_time_title: Label paren_flash_time: Entry > flash_delay bell_on: Checkbutton > paren_bell frame_format: Frame format_width_title: Label format_width_int: Entry > format_width )rÚGeneralúeditor-on-startup)rrrI)rrrH)rÚIndentú num-spaces)rrú cursor-blink)r:r8Ú popupwait)r:r:r?)r:r:ú flash-delay)r:r:Úbell)r:r;ú max-widthr‰z Window PreferencesrÕrrxz At StartuprkrÞzOpen Edit Window©ràr0rlzOpen Shell Windowz$Initial Window Size (in characters)ÚWidthrˆrg©Ú textvariablerIÚvalidatecommandÚvalidateÚHeightzIndent spaces (4 is standard)é )r‘Úfrom_ÚtorIr’r“Úreadonlyé )r‘rqrErIz Cursor Blinkz Cursor blink)rlràz%Completions Popup Wait (milliseconds)r‡zParen Match StyleÚ expressionÚopenerÚparensz;Time Match Displayed (milliseconds) (0 is until next input)zBell on MismatchzFormat Paragraph Max Widthr|rfryrër~©rprírèrîrØrzN)1r[r‚rÚ startup_editrÚ win_widthÚ win_heightÚ indent_spacesrÚ cursor_blinkÚautocomplete_waitÚ paren_styleÚ flash_delayÚ paren_bellÚ format_widthr"rr!r&r)Ústartup_editor_onÚstartup_shell_onr%r�Ú win_width_intÚwin_height_intr,Úindent_chooserr r-rer�r$Úcursor_blink_boolÚ auto_wait_intr'Úparen_style_typeÚparen_flash_timeÚbell_onÚformat_width_intr„r r rrrrr r)r`Ú frame_windowÚ frame_runÚ startup_titleÚframe_win_sizeÚwin_size_titleÚwin_width_titleÚwin_height_titleÚ frame_cursorÚ indent_titleÚcursor_blink_titleÚframe_autocompleteÚauto_wait_titleÚ frame_paren1Úparen_style_titleÚ frame_paren2Úparen_time_titleÚ frame_formatÚformat_width_titles rcrozWinPage.create_page_windowss�€ôR$ŸK™KÜ�t“ ÐFóHˆÔä Ÿ™Ü˜$“Ð!BóDˆŒä!Ÿ+™+ܘ$“Ð!CóEˆŒä$Ÿ[™[ܘ$“Ð!AóCˆÔä#ŸK™Kܘ4Ó Ð"JóLˆÔä!(§¡Ü˜$“Ð!Ló"NˆÔä"Ÿ;™;ܘ$“Ð!FóHˆÔä"Ÿ;™;ܘ$“Ð!LóNˆÔä!Ÿ+™+ܘ4Ó Ð"FóHˆŒä#ŸK™Kܘ$“Ð!OóQˆÔô" $°A¼fØ'<ô>ˆ ô˜,°AÔ6ˆ ܘi¨lÔ;ˆ Ü!,Ø D×$5Ñ$5¸QØ'ô")ˆÔô!,Ø D×$5Ñ$5¸QØ(ô!*ˆÔô˜|¸Ô;ˆÜØÐ%KôMˆä °WÔ=ˆÜ"بT¯^©^À1Ø $× 0Ñ 0¸5ô ˆÔô! °hÔ?ÐÜ#بT¯_©_ÀAØ $× 0Ñ 0¸5ô ˆÔô ˜\°qÔ9ˆ ܘ\Ø"AôCˆ ð IÜ")Ø ¨t×/AÑ/AØ ¨!Ø$(×$4Ñ$4¸uô#FˆDÔ ô# <°nÔEÐÜ!,¨\ÀØ6:×6GÑ6Gô"IˆÔô# <¸QÔ@ÐÜÐ 2Ø%LôNˆä"Ø"°×1GÑ1Gب×)9Ñ)9ÀEôKˆÔô˜\°qÔ9ˆ Ü! ,Ð5HÔIÐÜ *ؘd×.Ñ.° ؘ ,ó!0ˆÔô˜\°qÔ9ˆ Ü Øð$<ô=Ðô!&ب4×+;Ñ+;À1Ø $× 0Ñ 0¸5ô!BˆÔô#ØÐ#5ÀÇÁôQˆŒ ä˜\°qÔ9ˆ Ü" <Ø(DôFÐä %ب4×+<Ñ+<ÀAØ $× 0Ñ 0¸5ô!ˆÔð ×Ñœs¨°¼4ÄdÐÔKà�‰œC a¨a´aˆÔ8Ø×Ѥ¬Q°Q¸QÐÔ?Ø ×Ñ×"Ñ"¬´a¸aÀaÐ"ÔHØ ×Ñ×#Ñ#¬´q¸qÀqÐ#ÔIà×Ѥ¨1°1¼1ÐÔ=Ø×Ѥ¬a°a¸aÐÔ@Ø ×Ñ× Ñ ¤e´A¸BÀQÐ ÔGØ×Ѥ5´¸ÐÔ;Ø ×Ñ×ѤU´1¸2ÀAÐÔFØ×Ѥ%´¸ÐÔ:à×Ñœs¨°¼ÐÔ;Ø×Ñœt¬A°AÐÔ6Ø ×Ñ× Ñ ¤d´1¸2Ð Ô>Ø ×Ñ×#Ñ#¬´q¸rÈÐ#ÔJà×ѤS¨q°q¼qÐÔAØ×Ѥ$¬q°q¸qÐÔAØ ×Ñ×ѤS¨r¸ÐÔ:à×Ñœs¨°¼ÐÔ;Ø×ѤD´¸ÀÐÔCØ ×Ñ×"Ñ"¬°"¸1Ð"Ô=Ø×Ñœs¨°¼ÐÔ;Ø×Ѥ4´¸ÐÔ:Ø � ‰ ×Ñœu¬Q°R¸aÐÔ@Ø ×Ñ×"Ñ"¬´A¸BÀQÐ"ÔGà×Ñœs¨°¼ÐÔ;Ø×ѤT´!¸!À!ÐÔDØ ×Ñ×"Ñ"¬°"¸1Ð"Õ=øôOò IÜ"*Ø ¨t×/AÑ/AØ$¬T´%¸¸"³+Ó->Àaô#IˆD× ð IúsÉ3+]3Ý3;^2Þ1^2cóä—|jjtjdddd¬««|jjtjdddd¬««|j jtjddd d¬««|j jtjdd d d¬««|jjtjddd d¬««|jjtjd ddd¬««|jjtjd dd««|jjtjd ddd¬««|jjtjd dd««|jjtjd ddd¬««y)Nrr…r†r®©r3rrIÚintrHr‡rˆr‰r:r8rŠr:r?r‹rŒr;r�) ržr÷r0r´rŸr r¡r¢r£r¤r¥r¦r§ržs rcrpzWinPage.load_windows_cfgÃs¨€à ×Ñ×Ñœh×0Ñ0ؘ Ð#6¸VôEô Fà �‰×Ñœ8×-Ñ-ؘ¨°eô=ô >à �‰×ÑœH×.Ñ.ؘ¨°uô>ô ?à ×Ñ×Ñœx×1Ñ1ؘ ,°Uô <ô =à ×Ñ×Ñœh×0Ñ0ؘ¨¸VôEô Fà ×Ñ×"Ñ"¤8×#5Ñ#5ؘn¨kÀô$Gô Hà ×Ñ×ÑœX×/Ñ/ؘl¨Gó5ô 6à ×Ñ×ÑœX×/Ñ/ؘl¨MÀôGô Hà �‰×ÑœH×.Ñ.ؘl¨Fó4ô 5à ×Ñ×Ñœh×0Ñ0ØÐ/°À5ôJõ Krd)rÇrÈrÉrKrnrorprËrÌs@rcr~r~ sø„ô òFòh>öTKrdr~có0‡—eZdZˆfd„Zd„Zd„Zd„ZˆxZS)r€có„•—t‰|�|«|j«|j«|j «yrÏ)r®rKrnÚcreate_page_shedÚload_shelled_cfgrqs €rcrKzShedPage.__init__Ýs4ø€Ü ‰Ñ˜Ô à ×ÑÔØ ×ÑÔØ ×ÑÕrdcój‡—tjd«Šˆfd„}|j|«df|_y)Nrscó*•—‰j|«duSrurvrxs €rcrzz4ShedPage.init_validators..is_digits_or_emptyær{rdr|r}r‚s @rcrnzShedPage.init_validatorsärƒrdcót—tjt|«d«|_tjt |«d«|_tjt |«d«|_tjt|«d«|_t|dtd¬«}t|dtd¬«}t|d ¬ «}t|d ¬ «}t|d |j|jd¬«|_t|d ¬ «}t|d¬ «}t!||j d d¬«|_t!||j dd¬«|_t|d ¬ «}t|d¬ «}t'||jd¬«|_t|d ¬ «} t| d¬ «} t| |jd|jd¬«|_|j-t.ddt0¬«t|«j-«|j-t.ddt0¬«|j-t.dd t2¬«|j-t4t6dd¬«|jj-t.dd¬«|j-t.dd t2¬«|j-t4t6dd¬«|j$j-t8t6dd¬«|j"j-t8t6dd¬«|j-t.dd t2¬«|j-t4t6dd¬«|j(j-t4dd¬«| j-t.dd t2¬«| j-t4t6dd¬«|j*j-t.dd¬«y)acReturn frame of widgets for Shell/Ed tab. Enable users to provisionally change shell and editor options. Function load_shed_cfg initializes tk variables using idleConf. Entry box auto_squeeze_min_lines_int sets auto_squeeze_min_lines_int. Setting var_name invokes the default callback that adds option to changes. Widgets for ShedPage(Frame): (*) widgets bound to self frame_shell: LabelFrame frame_auto_squeeze_min_lines: Frame auto_squeeze_min_lines_title: Label (*)auto_squeeze_min_lines_int: Entry - auto_squeeze_min_lines frame_editor: LabelFrame frame_save: Frame run_save_title: Label (*)save_ask_on: Radiobutton - autosave (*)save_auto_on: Radiobutton - autosave frame_format: Frame format_width_title: Label (*)format_width_int: Entry - format_width frame_line_numbers_default: Frame line_numbers_default_title: Label (*)line_numbers_default_bool: Checkbutton - line_numbers_default frame_context: Frame context_title: Label (*)context_int: Entry - context_lines )rÚPyShellúauto-squeeze-min-lines)rr…Úautosave)rrúline-numbers-default)r:r9Úmaxlinesr‰z Shell PreferencesrÕz Editor PreferencesrrxzAuto-Squeeze Min. Lines:rkr|rg)rIr‘r’r“zAt Start of Run (F5) zPrompt to SaverŽrÞz No Promptz Show line numbers in new windows)ràrIzMax Context Lines :rˆr�rfrër~rzN)r[r‚rÚauto_squeeze_min_linesrrÑrÚline_numbers_defaultÚ context_linesr"rr!r&r%r�Úauto_squeeze_min_lines_intr)Ú save_ask_onÚ save_auto_onr$Úline_numbers_default_boolÚ context_intr„r rrrrr ) r`Ú frame_shellÚ frame_editorÚframe_auto_squeeze_min_linesÚauto_squeeze_min_lines_titleÚ frame_saveÚrun_save_titleÚframe_line_numbers_defaultÚline_numbers_default_titleÚ frame_contextÚ context_titles rcrÊzShedPage.create_page_shedës6€ô>'.§k¡kܘ$“Ð!Nó'PˆÔ#ô Ÿ ™ Ü�t“ Ð=ó?ˆŒ ä$+§K¡Kܘ4Ó Ø@ó%BˆÔ!ô%Ÿ[™[ܘ$“Ð!JóLˆÔô! °1¼VØ&:ô<ˆ ä! $°A¼fØ'<ô>ˆ ô(-¨[ÀaÔ'HÐ$Ü',Ð-IØ2Lô(NÐ$ä*/Ø,°AØ!×8Ñ8Ø $× 0Ñ 0¸5ô+ ˆÔ'ô ˜<°QÔ7ˆ ܘzÐ0HÔIˆä&Ø T§]¡]¸!Ø%ô'ˆÔô(Ø T§]¡]¸!Ø ô"ˆÔô&+¨<ÀQÔ%GÐ"Ü%*Ø &Ð-Oô&QÐ"ä)4Ø*Ø×2Ñ2Øô*ˆÔ&ô ˜l¸Ô:ˆ ܘmÐ2GÔHˆ Ü Ø¨D×,>Ñ,>ÀaØ $× 0Ñ 0¸5ô ˆÔð ×Ñœc¨°¼ÐÔ=Ü ˆd‹ ×ÑÔØ×Ñœs¨°¼ÐÔ>à$×)Ñ)¬s¸ÀÌÐ)ÔKØ$×)Ñ)¬t¼AÀAÈAÐ)ÔNØ ×'Ñ'×,Ñ,´#¸AÀAÐ,ÔFà�‰œS q¨q´qˆÔ9Ø×Ѥ¬a°a¸aÐÔ@Ø ×Ñ×ѤE´!¸!À!ÐÔDØ ×Ñ×Ѥ5´¸ÀÐÔCà"×'Ñ'¬S°q¸qÄqÐ'ÔIØ"×'Ñ'¬T¼!À!È!Ð'ÔLØ ×&Ñ&×+Ñ+´¸AÀAÐ+ÔFà×Ѥ¨!°!¼!ÐÔ<Ø×Ѥ¬Q°Q¸QÐÔ?Ø ×Ñ×Ѥ3¨Q°QÐÕ7rdc ó–—|jjtjdddd¬««|jjtjddddd ¬ ««|j jtjdd d d ¬««|j jtjd ddd¬««y)NrrÏrÐrÇrÆr…rÑrr®)r­r3rrÒr:r9rÓ)rÔr÷r0r´rÑrÕrÖržs rcrËzShedPage.load_shelled_cfgSs¶€à ×#Ñ#×'Ñ'¬×(:Ñ(:ؘ Ð#;À%ô)Iô Jð � ‰ ×Ñœ(×,Ñ,ؘ  :°q¸vôGô Hà ×!Ñ!×%Ñ%¤h×&8Ñ&8ؘÐ(>ÀVô'Mô Nà ×Ñ×Ñœx×1Ñ1ؘm¨Z¸eô Eõ Frd)rÇrÈrÉrKrnrÊrËrËrÌs@rcr€r€Ûsø„ô òFòf8öP Frdr€cóB‡—eZdZˆfd„Zd„Zd„Zd„Zd„Zd„Zd„Z ˆxZ S)rwcóø•—t‰|�|«tjd|_tj d|_|jt«|_|j«|j«y)Nr:) r®rKr0rÚext_defaultCfgrúÚ ext_userCfgr€Úis_intÚload_extensionsÚcreate_page_extensionsrqs €rcrKzExtPage.__init__as^ø€Ü ‰Ñ˜Ô Ü&×1Ñ1°,Ñ?ˆÔÜ#×+Ñ+¨LÑ9ˆÔØ—m‘m¤FÓ+ˆŒ Ø ×ÑÔØ ×#Ñ#Õ%rdcóš—t|«|_t|dtd¬«}t |dtd¬«|_|j dd¬«|jdd¬«t||jd¬ «|_ |jjd |j«t||jj¬ «}|j|j_t|d d ¬ «|_|jj#ddd¬«|j#ddd¬«|j j#dddddg¬«|j%d¬«i|_d|_||_|j|_d}t/|j0«D]}|j3|«|dz|zdz}Œ |jj|«|jj5d«|jd«|j#ddd¬«t7|«j#dd¬«|j j#ddd¬«y)aõConfigure IDLE feature extensions and help menu extensions. List the feature extensions and a configuration box for the selected extension. Help menu extensions are in a HelpFrame. This code reads the current configuration using idleConf, supplies a GUI interface to change the configuration values, and saves the changes using idleConf. Some changes may require restarting IDLE. This depends on each extension's implementation. All values are treated as text, and it is up to the user to supply reasonable values. The only exception to this are the 'enable*' options, which are boolean, and can be toggled with a True/False button. Methods: extension_selected: Handle selection from list. create_extension_frame: Hold widgets for one extension. set_extension_value: Set in userCfg['extensions']. save_all_changed_extensions: Call extension page Save(). r‰z Feature Extensions rÕz Help Menu Extensions rrÞräÚbrowse)Ú listvariableÚ selectmodez<>rÜéú)rIrHÚnws©rçrærjÚnsrér•)rçrærjr�rgNr²Ú{z} r)rærçÚsew)rÚextension_namesr"rÚ HelpFrameÚ frame_helprürûrÚextension_listróÚextension_selectedr*rör÷rÝÚ details_framerurŠÚ config_frameÚcurrent_extensionÚ outerframeÚtabbed_page_setrr:Úcreate_extension_frameÚ selection_setr&)r`Ú frame_extÚscrollÚ ext_namesr?s rcrízExtPage.create_page_extensionsis €ô0 )¨›ˆÔä˜t°¼6Ø$:ô<ˆ ä# D°aÄØ$<ô>ˆŒð ×јq¨ÐÔ+Ø×!Ñ! !¨AÐ!Ô.Ü% i¸d×>RÑ>RØ19ô;ˆÔà ×Ñ× Ñ Ð!4°d×6MÑ6MÔNܘ9¨d×.AÑ.A×.GÑ.GÔHˆØ+1¯:©:ˆ×ÑÔ*Ü'¨ ¸ÀSÔIˆÔØ ×Ñ× Ñ ¨¨q¸Ð Ô?Ø� ‰ ˜1 !¨Dˆ Ô1Ø ×Ñ×Ñ q¨a¸ÀbÈ!ÀWÐÔMØ×Ñ BÐÔ'ØˆÔØ!%ˆÔàˆŒØ#×2Ñ2ˆÔðˆ ܘtŸ™Ö/ˆHØ × 'Ñ '¨Ô 1Ø! C™¨(Ñ2°TÑ9‰Ið0ð ×Ñ× Ñ  Ô+Ø ×Ñ×)Ñ)¨!Ô,Ø ×Ñ Ô%ð �‰˜1 Q¨vˆÔ6Ü ˆd‹ ×јQ qÐÔ)Ø �‰×Ñ ¨1°UÐÕ;rdc ó —i|_tjd¬«D]}g|j|<Œ|jD]ý}t|jj |««}|D�cgc]}|j d«r|‘Œ}}|D]}|j|«Œ||z}|D]•}|jj||d¬«} dddœ|}d} |jj|||d|¬ «}t|«} | jt|««|j|j!||||| d œ«Œ—Œÿy cc}w#t$r% t|«}d}n#t$r|}d }YnwxYwYŒ¡wxYw#t$r|}YŒ‘wxYw) zAFill self.extensions with data from the default and user configs.F)Ú active_onlyÚenableT)Úraw)ÚTrueÚFalser®rÇN)r3r r­)r4r3r­r0Úvar)r:r0Ú GetExtensionsrréÚ GetOptionListÚ startswithÚremoverÚKeyErrorrÇr#rêrr÷rŽÚappend) r`r?Úopt_listÚopt_nameÚenablesÚdef_strÚdef_objÚopt_typer0r s rcrìzExtPage.load_extensions¨s°€àˆŒÜ ×.Ñ.¸5×AˆHà(*ˆD�O‰O˜HÒ %ðB🜈Hܘd×1Ñ1×?Ñ?ÀÓIÓJˆHñ19ó9± HØ"×-Ñ-¨hÔ7ò °ˆGð9ã#�Ø—‘ Õ)ð$à Ñ)ˆHã$�Ø×-Ñ-×1Ñ1Ø  (°ð2ó6�ð (Ø&*°EÑ:¸7ÑC�GØ%�Hð$Ø ×,Ñ,×0Ñ0Ø$ h°XÀ4Ø$+ð1ó-�Eô   “o�Ø—‘œ˜E› Ô#à—‘ Ñ)×0Ñ0¸(Ø:BØ=DØ;@Ø9<ñ 23õ4ñ-%ñ(ùò9øô ò(ð(Ü"% g£,˜Ø#(™øÜ%ò(Ø")˜Ø#'šð(üð (ûô"ò$Ø#’Eð$úsNÁ)D?à Eà E5Å E2Å EÅE2Å E, Å)E2Å+E, Å,E2Å1E2Å5 FÆFcóΗ|jj«}|r|jj|«}|�||jk7rV|jrJ|jj d¬«|j |jj«d|_|rE|jj |¬«|j |jddd¬«||_yy)z/Handle selection of an extension from the list.Nr²rkrrérô) rûrbr«rÿrýrõrþÚ grid_forgetru)r`r5Únewsels rcrüzExtPage.extension_selectedÖsÍ€à×$Ñ$×1Ñ1Ó3ˆÙ Ø×(Ñ(×,Ñ,¨VÓ4ˆFØ ˆ>˜V t×'=Ñ'=Ò=Ø×%Ò%Ø×"Ñ"×)Ñ)¨rÐ)Ô2Ø×!Ñ! $×"8Ñ"8Ñ9×EÑEÔGØ)-�Ô&Ù Ø × Ñ × %Ñ %¨6Ð %Ô 2Ø × Ñ ˜fÑ %× *Ñ *°!¸À6Ð *Ô JØ%+ˆDÕ "ð rdcó&—t|jdd¬«}||j|<|j}t |j |«D]Ã\}}t ||d¬«}|j|dt¬«|d}|dd k(r(t||d d d ¬ «j|dtd¬«Œc|ddk(r4t||d|jdfd¬«j|dtd¬«ŒŸt||d¬«j|dtd¬«ŒÅy)z=Create a frame holding the widgets to configure one extensionròrGr4rkrrr r3r®r r r{)ràrárârIrÞé)rærçrjr�rÇrgr|r•)r‘r“r’rIrØ)r‘rIN)ÚVerticalScrolledFramerýrþÚinteriorÚ enumerater:r&rurr$rr%rër)r`r?ÚfÚ entry_arearæÚoptÚlabelr s rcrzExtPage.create_extension_frameås€ä ! $×"4Ñ"4¸SÈÔ LˆØ&'ˆ×ј(Ñ#Ø—Z‘Zˆ ä! $§/¡/°(Ñ";Ö<‰HˆC�ä˜*¨3¨v©;Ô7ˆEØ �J‰J˜3 q´ˆJÔ 4Ø�e‘*ˆCØ�6‰{˜fÒ$ܘJ°Ø$*°WÀAôç"™d s°1¼QÀQ˜dÕGØ�V‘ Ò%Ü�j¨s¸UØ'+§{¡{°DÐ&9Àôç™ ¨Q´tÀ!˜ÕDô�j¨s¸"ôß™ ¨Q´tÀ!˜ÕDð#=ð$ rdcó—|d}|d}|dj«j«xs|}|dj|«||k(r|jj ||«S|jj |||«S)zŸReturn True if the configuration was added or changed. If the value is the same as the default, then remove it from user config file. r4r­r )r«r¶r÷rêÚ RemoveOptionrü)r`Úsectionr$r4r­r0s rcÚset_extension_valuezExtPage.set_extension_valueÿs‚€ð �6‰{ˆØ�i‘.ˆØ�E‘ —‘Ó ×&Ñ&Ó(Ò3¨GˆØ ˆE‰ �‰�uÔð �WÒ Ø×#Ñ#×0Ñ0°¸$Ó?Ð ?à×Ñ×)Ñ)¨'°4¸Ó?Ð?rdcóº—d}|jD]-}|j|}|D]}|j||«sŒd}ŒŒ/|r|jj«yy)z£Save configuration changes to the user config file. Attributes accessed: extensions Methods: set_extension_value FTN)r:r)rêÚSave)r`Ú has_changesr?Úoptionsr$s rcr£z#ExtPage.save_all_changed_extensionss`€ðˆ ØŸœˆHØ—o‘o hÑ/ˆGÛ�Ø×+Ñ+¨H°cÕ:Ø"&‘Kñð(ñ Ø × Ñ × !Ñ !Õ #ð rd) rÇrÈrÉrKrírìrürr)r£rËrÌs@rcrwrw`s)ø„ô&ò=<ò~,4ò\ ,òò4@ö"$rdrwcóN‡—eZdZˆfd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z ˆxZ S) rùc óf•—t‰|�|fi|¤Ž|j«|j«yrÏ)r®rKÚcreate_frame_helpÚ load_helplist)r`rÓÚcfgr¯s €rcrKzHelpFrame.__init__%s-ø€Ü ‰Ñ˜Ñ' 3Ò'Ø ×ÑÔ Ø ×ÑÕrdcóÜ—t|«}t|ddt¬«|_t |«}|jj |d<|j |jd<|jjd|j«t|«}t|ddd |j¬ «|_ t|d d |j¬ «|_ t|d dd |j¬ «|_|j!t"ddt$t&¬«|jj!t"t(t$t&¬«|j!t*t,t.¬«|j!t*ddt.¬«|jj!t0t,d¬«|jj!t0t,¬«|jj!t0t,d¬«y)a8Create LabelFrame for additional help menu sources. load_helplist loads list user_helplist with name, position pairs and copies names to listbox helplist. Clicking a name invokes help_source selected. Clicking button_helplist_name invokes helplist_item_name, which also changes user_helplist. These functions all call set_add_delete_state. All but load call update_help_changes to rewrite changes['main']['HelpFiles']. Widgets for HelpFrame(LabelFrame): (*) widgets bound to self frame_helplist: Frame (*)helplist: ListBox scroll_helplist: Scrollbar frame_buttons: Frame (*)button_helplist_edit (*)button_helplist_add (*)button_helplist_remove rfTrÙrŽrÝrÛÚEditrpr{)rlrqrIrŽÚAdd)rlrIrŽÚRemovery)rprírqrr)rprírrrër�rìN)r!rr Úhelplistr*rör÷róÚhelp_source_selectedr#Úhelplist_item_editÚbutton_helplist_editÚhelplist_item_addÚbutton_helplist_addÚhelplist_item_removeÚbutton_helplist_remover„rr rrr rrr )r`Úframe_helplistÚscroll_helplistÚ frame_buttonss rcr0zHelpFrame.create_frame_help*sŒ€ô*˜t›ˆÜØ q°DÜ %ô'ˆŒ ô$ NÓ3ˆØ%)§]¡]×%8Ñ%8ˆ˜ Ñ"Ø*9×*=Ñ*=ˆ� ‰ Ð&Ñ'Ø � ‰ ×ÑÐ.°×0IÑ0IÔJä˜d› ˆ Ü$*Ø F°*Ø ×!8Ñ!8ô%:ˆÔ!ô$*Ø EØ ×!7Ñ!7ô$9ˆÔ ô'-Ø H°JØ ×!:Ñ!:ô'<ˆÔ#ð ×Ѥ¨A°A¼dÌÐÔNØ � ‰ ×Ѥ¬Q´tÄ$ÐÔGØ×Ѥ%´¼ÐÔ:Ø×Ѥ¨A°A¼AÐÔ>Ø ×!Ñ!×&Ñ&¬C¼ÀÐ&ÔBØ × Ñ ×%Ñ%¬3´qÐ%Ô9Ø ×#Ñ#×(Ñ(¬c¼!À!Ð(ÕDrdcó$—|j«y)z+Handle event for selecting additional help.N)Úset_add_delete_staterVs rcr8zHelpFrame.help_source_selected\rÆrdcóº—|jj«dkr7|jjd«|jjd«y|jj «r7|jjd«|jjd«y|jjd«|jjd«y)zAToggle the state for the help list buttons based on list entries.rÞr²rÈN)r7Úsizer:rqr>rbržs rcrCzHelpFrame.set_add_delete_state`sŸ€à �=‰=× Ñ Ó  !Ò #Ø × %Ñ %× +Ñ +¨MÔ :Ø × 'Ñ '× -Ñ -¨mÕ <à�}‰}×)Ñ)Ô+Ø×)Ñ)×/Ñ/°Ô?Ø×+Ñ+×1Ñ1°.ÕAà×)Ñ)×/Ñ/° Ô>Ø×+Ñ+×1Ñ1°-Õ@rdcóÒ—t|d«j}|rO|jj|«|jj t |d«|j«yy)zˆHandle add button for the help list. Query for name and location of new help sources and add them to the list. zNew Help SourcerN)r6râÚ user_helplistrr7rúrÚupdate_help_changes)r`Ú help_sources rcr;zHelpFrame.helplist_item_addmsW€ô ! Ð'8Ó9×@Ñ@ˆ Ù Ø × Ñ × %Ñ % kÔ 2Ø �M‰M× Ñ ¤ k°!¡nÔ 5Ø × $Ñ $Õ &ð rdcó‚—|jjt«}|j|}t |d|d|d¬«j }|rp||k7rj||j|<|jj |«|jj||d«|j«|j«yyy)z˜Handle edit button for the help list. Query with existing help source information and update config if the values are changed. zEdit Help SourcerrÞ)ÚmenuitemÚfilepathN) r7rrrGr6rârHrúrHrC)r`Ú item_indexrIÚnew_help_sources rcr9zHelpFrame.helplist_item_editys¶€ð —]‘]×(Ñ(¬Ó0ˆ Ø×(Ñ(¨Ñ4ˆ Ü$ØÐ(Ø$ Q™Ø$ Q™ô÷‘&ð ñ ˜°+Ò=Ø-<ˆD× Ñ ˜zÑ *Ø �M‰M× Ñ  Ô ,Ø �M‰M× Ñ  ¨_¸QÑ-?Ô @Ø × $Ñ $Ô &Ø × %Ñ %Õ 'ð >ˆ?rdcóÒ—|jjt«}|j|=|jj |«|j «|j «y)z`Handle remove button for the help list. Delete the help list item from config. N)r7rrrGrHrHrC)r`rMs rcr=zHelpFrame.helplist_item_remove�sP€ð —]‘]×(Ñ(¬Ó0ˆ Ø × Ñ ˜zÐ *Ø � ‰ ×јZÔ(Ø × Ñ Ô"Ø ×!Ñ!Õ#rdc óð—itdd<tdt|j«dz«D]E}tj ddt |«dj |j|dz dd««ŒGy)z2Clear and rebuild the HelpFiles section in changesrÚ HelpFilesrÞÚ;Nr‰)r¡r�r‹rGr-rŽrZ)r`Únums rcrHzHelpFrame.update_help_changes˜sl€à')Œ�‰˜ Ñ$ܘœC × 2Ñ 2Ó3°aÑ7Ö8ˆCÜ × Ñ Ø˜K¬¨S«Ø—H‘H˜T×/Ñ/°°A±Ñ6°r¸Ð:Ó;õ =ñ9rdcóö—tj«|_|jj dd«|jD]%}|jj t |d«Œ'|j«y)Nrr©)r0ÚGetAllExtraHelpSourcesListrGr7rHrúrrC)r`Ú help_items rcr1zHelpFrame.load_helplist s[€ä%×@Ñ@ÓBˆÔØ � ‰ ×јQ Ô&Ø×+Ô+ˆIØ �M‰M× Ñ ¤ i°¡lÕ 3ð,à ×!Ñ!Õ#rd) rÇrÈrÉrKr0r8rCr;r9r=rHr1rËrÌs@rcrùrù#s3ø„ôò 0Eòd$ò Aò 'ò(ò( $ò=ö$rdrùcó>—eZdZdZd„Zd„Zd„Zed„«Zd„Z d„Z y) ÚVarTracez"Maintain Tk variables trace state.có —g|_g|_y)aStore Tk variables and callbacks. untraced: List of tuples (var, callback) that do not have the callback attached to the Tk var. traced: List of tuples (var, callback) where that callback has been attached to the var. N)ÚuntracedÚtracedržs rcrKzVarTrace.__init__¬s€ðˆŒ ؈� rdcól—|jj«|jj«y)zClear lists (for tests).N)rZr¦r[ržs rcr¦zVarTrace.clear¸s$€ð � ‰ ×ÑÔØ � ‰ ×ÑÕrdcó„—t|t«r|j||«}|jj ||f«|S)a_Add (var, callback) tuple to untraced list. Args: var: Tk variable instance. callback: Either function name to be used as a callback or a tuple with IdleConf config-type, section, and option names used in the default callback. Return: Tk variable instance. )Ú isinstanceÚtupleÚ make_callbackrZr©r`r Úcallbacks rcr‚z VarTrace.add¾s;€ô �h¤Ô &Ø×)Ñ)¨#¨xÓ8ˆHØ � ‰ ×јc 8˜_Ô-؈ rdc󇇗ˆˆfd„}|S)zCReturn default callback function to add values to changes instance.cóP•—tjg‰¢‰j«‘­Žy)z&Add config values to changes instance.N)r¡r-r«)r/rõr s €€rcÚdefault_callbackz0VarTrace.make_callback..default_callbackÒsø€ä × Ñ Ð 2 Ð 2¨¯©« Ô 2rdr[)r rõres`` rcr`zVarTrace.make_callbackÏsù€õ 3ð ÐrdcóЗ|jrZ|jj«\}}|jd|«|jj ||f«|jrŒYyy)z0Attach callback to all vars that are not traced.ÚwriteN)rZÚpopÚ trace_addr[rras rcr\zVarTrace.attach×sL€à�mŠmØ ŸM™M×-Ñ-Ó/‰MˆC�Ø �M‰M˜' 8Ô ,Ø �K‰K× Ñ   X˜Ô /ð�m�mrdcóø—|jrn|jj«\}}|jd|j«dd«|jj ||f«|jrŒmyy)z!Remove callback from traced vars.rgrrÞN)r[rhÚ trace_removeÚ trace_inforZrras rcÚdetachzVarTrace.detachÞs]€à�kŠkØ ŸK™KŸO™OÓ-‰MˆC�Ø × Ñ ˜W c§n¡nÓ&6°qÑ&9¸!Ñ&<Ô =Ø �M‰M× Ñ  # x Ô 1ð�k�krdN) rÇrÈrÉrÊrKr¦r‚rkr`r\rmr[rdrcrXrX©s2„Ù,ò òò ð"ñ óð ò0ó2rdrXa7When you click either the Apply or Ok buttons, settings in this dialog that are different from IDLE's default are saved in a .idlerc directory in your home directory. Except as noted, these changes apply to all versions of IDLE installed on this machine. [Cancel] only cancels changes made since the last save. u Font sample: This shows what a selection of Basic Multilingual Plane unicode characters look like for the current font selection. If the selected font does not define a character, Tk attempts to find another font that does. Substitute glyphs depend on what is available on a particular system and will not necessarily have the same size as the font selected. Line contains 20 characters up to Devanagari, 14 for Tamil, and 10 for East Asia. Hebrew and Arabic letters should display right to left, starting with alef, ×� and ا. Arabic digits display left to right. The Devanagari and Tamil lines start with digits. The East Asian lines are Chinese digits, Chinese Hanzi, Korean Hangul, and Japanese Hiragana and Katakana. You can edit the font sample. Changes remain until IDLE is closed. z¨ Highlighting: The IDLE Dark color theme is new in October 2015. It can only be used with older IDLE releases if it is saved as a custom theme, with a different name. z¢ Keys: The IDLE Modern Unix key set is new in June 2016. It can only be used with older IDLE releases if it is saved as a custom key set, with a different name. a_ General: AutoComplete: Popupwait is milliseconds to wait after key char, without cursor movement, before popping up completion box. Key char is '.' after identifier or a '/' (or '\' on Windows) within a string. FormatParagraph: Max-width is max chars in lines after re-formatting. Use with paragraphs in both strings and comment blocks. ParenMatch: Style indicates what is highlighted when closer is entered: 'opener' - opener '({[' corresponding to closer; 'parens' - both chars; 'expression' (default) - also everything in between. Flash-delay is how long to highlight if cursor is not moved (0 means forever). CodeContext: Maxlines is the maximum number of code context lines to display when Code Context is turned on for an editor window. Shell Preferences: Auto-Squeeze Min. Lines is the minimum number of lines of output to automatically "squeeze". a� ZzDummy: This extension is provided as an example for how to create and use an extension. Enable indicates whether the extension is active or not; likewise enable_editor and enable_shell indicate which windows it will be active on. For this extension, z-text is the text that will be inserted at or removed from the beginning of the lines of selected text, or the current line if no selection. )z Fonts/Tabsrmr-r…rncó@—|sy t|«y#t$rYywxYw)z(Return 's is blank or represents an int'TF)rÇr#)r)s rcrërë- s)€á ØðÜ ˆAŒØøÜ òÙðús … ‘ œcó—eZdZdZd„Zy)rzÞA pure Tkinter vertically scrollable frame. * Use the 'interior' attribute to place widgets inside the scrollable frame * Construct and pack/place/grid normally * This frame only allows vertical scrolling cóH‡‡‡ —tj||g|¢­i|¤Žt|t¬«}|j t t t¬«t|dd|jd¬«Š‰j ttt¬«|j‰j¬«‰jd«‰j!d«t‰«x|_Љj%dd‰t&¬«Š ˆˆfd „}‰j)d |«ˆˆˆ fd „}‰j)d |«y) Nr)rrrprqréð)r‘rXrÝrIrrÜ)Úwindowrícóp•—‰j«‰j«f}‰jd|z¬«y)Nz 0 0 %s %s)Ú scrollregion)Úwinfo_reqwidthÚwinfo_reqheightrõ)r5rEÚcanvasr s €€rcÚ_configure_interiorz;VerticalScrolledFrame.__init__.._configure_interiorT s2ø€à×+Ñ+Ó-¨x×/GÑ/GÓ/IÐJˆDØ �M‰M {°TÑ'9ˆMÕ :rdz c󌕗‰j«‰j«k7r"‰j‰‰j«¬«yy)N)rI)ruÚ winfo_widthÚ itemconfigure)r5rwr Ú interior_ids €€€rcÚ_configure_canvasz9VerticalScrolledFrame.__init__.._configure_canvasZ s?ø€Ø×&Ñ&Ó(¨F×,>Ñ,>Ó,@Ò@à×$Ñ$ [¸×8JÑ8JÓ8LÐ$ÕMðArd)r!rKr*rr„rr r rr÷rrr rõröÚ xview_movetoÚ yview_movetor Ú create_windowrró) r`rLrðÚkwÚ vscrollbarrxr}rwr r|s @@@rcrKzVerticalScrolledFrame.__init__? sõú€Ü �‰�t˜VÐ1 dÒ1¨bÒ1ô˜t¬HÔ5ˆ Ø�‰œQ¤U´5ˆÔ9ܘ¨!ÀØ'1§~¡~¸SôBˆà� ‰ œ¤D´ˆ Ô6Ø×Ñ &§,¡,ÐÔ/ð ×јAÔØ×јAÔô$)¨£=Ð0ˆŒ ˜Ø×*Ñ*¨1¨a¸ÌÐ*ÓLˆ õ ;ð � ‰ �mÐ%8Ô9ö Nð � ‰ �MÐ#4Ô5àrdN)rÇrÈrÉrÊrKr[rdrcrr8 s „ñó !rdrÚ__main__)rz#idlelib.idle_test.test_configdialogr‰F)Ú verbosityÚexit)Úrun)crÊr~Útkinterrrrrrrr r r r r rrrrrrrrrrrrrrrrrrr Ú tkinter.ttkr!r"r#r$r%r&r'r(r)r*r+r,r-r.Ú tkinter.fontr(rr/Úidlelib.configr0r1Úidlelib.config_keyr2Úidlelib.dynoptionr3Úidlelibr4Ú idlelib.queryr5r6Úidlelib.textviewr7Úidlelib.autocompleter8Úidlelib.codecontextr9Úidlelib.parenmatchr:Úidlelib.formatr;Úidlelib.squeezerr<r=r¡rÄr?r¬r{ryr|r~r€rwrùrXr[r·r¸rërrÇÚunittestrÚidlelib.idle_test.htestr†r[rdrcÚr—sœðñ ó ÷J÷J÷J÷J÷J÷J÷J÷J÷ ,÷,÷,õ,õ!ÝÝç2Ý,Ý+Ýß1Ý&Ý-Ý+Ý)Ý*Ý%Ý0á ‹/€à˜[¨*°oØð€ ô{�8ô{ð^Eðô