eSrSSKJrJrJrJrJrJrJrJ r J r J r J r SSK JrJrJr SSKJr SSKJr "SS\5r"SS \5r"S S \5r"S S \5rSSjrSSjr\S:XaSSKJr \"SSSS9 SSKJr \"\5 gg)zSimple text browser for IDLE ) ToplevelTextTclError HORIZONTALVERTICALNSEWNSEWNONEWORDSUNKEN)Frame ScrollbarButton) showerror) color_configc8^\rSrSrSrU4SjrSrSrSrU=r $)AutoHideScrollbar zhA scrollbar that is automatically hidden when not needed. Only the grid geometry manager is supported. c>[U5S:d[U5S:aUR5 OUR5 [TU]X5 g)Ngg?)floatgrid grid_removesuperset)selflohi __class__s 6/opt/imh/python3.13/lib/python3.13/idlelib/textview.pyrAutoHideScrollbar.sets9 9s?eBi#o IIK      Bc F[URRS35e)Nz does not support "pack"rr__name__rkwargss r packAutoHideScrollbar.packs $..1122JKLLr"c F[URRS35e)Nz does not support "place"r$r&s r placeAutoHideScrollbar.places $..1122KLMMr") r% __module__ __qualname____firstlineno____doc__rr(r+__static_attributes__ __classcell__rs@r rr sMNNr"rc2^\rSrSrSr\4U4SjjrSrU=r$)ScrollableTextFramezDisplay text with scrollbar(s).c 0>[TU]"U40UD6 [XS9=o@lUR SS[ S9 UR SSS9 URSSS9 [U[SURS9Ul URR SS[S9 URRUS'U[:XaX[U[SUR S9UlUR"R SS[$S9 UR"RUS 'g S Ulg ) aYCreate a frame for Textview. master - master widget for this frame wrap - type of text wrapping to use ('word', 'char' or 'none') All parameters except for 'wrap' are passed to Frame.__init__(). The Text widget is accessible via the 'text' attribute. Note: Changing the wrapping mode of the text widget after instantiation is not supported. wrapr)rowcolumnsticky)weightF)orient takefocuscommandyscrollcommandxscrollcommandN)r__init__rtextrr grid_rowconfiguregrid_columnconfigurerryviewyscrollrrr rxviewxscrollr )rmasterr:r'rFrs r rEScrollableTextFrame.__init__"s *6*00y a$ / q+ !!!A!.)h3815=  a"5!%!1!1  4<,T*7<59ZZADL LL  !Ab  9%)\\%5%5D! "DLr")rFrLrJ) r%r.r/r0r1r rEr2r3r4s@r r6r6s)$(# # r"r6c:^\rSrSrSrSU4SjjrSSjrSrU=r$) ViewFrameHz#Display TextFrame and Close button.c >[TU]U5 XlURSUR5 URSUR5 [ U[ SS9UlURR=o@lURSU5 URUSSS9 [U5 UR5 [US URS S 9=UlnURRS S SS9 URSS9 g)zCreate a frame for viewing text with a "Close" button. parent - parent widget for this frame contents - text to display wrap - type of text wrapping to use ('word', 'char' or 'none') The Text widget is accessible via the 'text' attribute. zzi)reliefheightz1.0rdisabled)r:highlightthicknessstateCloseFrFrBrAtopTbothsideexpandfillbottom)r]N)rrEparentbindokr6r textframerFinsert configurer focus_setr button_okr()rracontentsr:rFrhrs r rEViewFrame.__init__Js    *dgg& *dgg&,T&M>>...y E8$ DQjIT %+7DGGu&F F t&AH%r"c8URR5 gzDismiss text viewer dialog.N)radestroyrevents r rc ViewFrame.okds r")rhrarFrd)wordN) r%r.r/r0r1rErcr2r3r4s@r rPrPHs)&4r"rPcH^\rSrSrSrS\4SSS.U4SjjjrS SjrSrU=r $) ViewWindowiz%A simple text viewer dialog for IDLE.TF)_htest_utestcD>[T U]U5 SUS'UR5S-nUR5U(dSOS-n UR SUSU 35 UR U5 [ XUS9UlURSUR5 [US URS S 9=Ul n URRS S SS9 X@l UR(a:URU5 UR5 U(dUR!5 ggg)aShow the given text in a scrollable window with a 'close' button. If modal is left True, users cannot interact with other windows until the textview window is closed. parent - parent of this dialog title - string which is title of popup dialog contents - text to display in dialog wrap - type of text wrapping to use ('word', 'char' or 'none') _htest - bool; change box location when running htest. _utest - bool; don't wait_window when running unittest.  borderwidth dz =750x500++r9WM_DELETE_WINDOWrXFrYrZTr[r\N)rrE winfo_rootx winfo_rootygeometrytitlerP viewframeprotocolrcrrhr(is_modal transientgrab_set wait_window) rrarrimodalr:rvrwxyrhrs r rEViewWindow.__init__ls  ]    2 %    fB# > !AaS)* 5"4= ($''2%+Dw48GGu&N N t&A == NN6 " MMO  " r"cfUR(aUR5 UR5 grl)r grab_releasermrns r rc ViewWindow.oks ==     r")rhrrrr) r%r.r/r0r1r rErcr2r3r4s@r rtrtis*+6:!# !#!#Fr"rtFc [XX#XES9$)aoCreate text viewer for given text. parent - parent of this dialog title - string which is the title of popup dialog contents - text to display in this dialog wrap - type of text wrapping to use ('word', 'char' or 'none') modal - controls if users can interact with other windows while this dialog is displayed _utest - bool; controls wait_window on unittest r:rw)rt)rarrirr:rws r view_textrs fX4 OOr"c [X#S9nUR5nSSS5 [XWXEUS9$!,(df  N=f![a [ SSU<S3US9 g[ an [ S[ U 5US9 Sn A gSn A ff=f) zCreate text viewer for text in filename. Return error message if file cannot be read. Otherwise calls view_text with contents of the file. )encodingNrzFile Load ErrorzUnable to load file z .)rmessagerazUnicode Decode Error)openreadrOSErrorrUnicodeDecodeErrorstr) rarfilenamerrr:rwfilerierrs r view_filers ( ( .$yy{H/% &( (/ . !)0 B? !  !.c( ! !s/ A0A >AB B&A??B__main__)mainzidlelib.idle_test.test_textview) verbosityexit)runN)TrqF) r1tkinterrrrrrrr r r r r tkinter.ttkrrrtkinter.messageboxridlelib.colorizerrrr6rPrtrrr%unittestridlelib.idle_test.htestrr-r"r rs;;;;00(*N N&& %& RB**Z PCI0 z *aeD+ O r"