Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/WidgetRedirector.pyo
mò ‚=5Dc @ sR d k Td f d „ ƒ YZ d f d „ ƒ YZ d „ Z e d j o e ƒ n d S( ( t *t WidgetRedirectorc B sD t Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s5 Support for redirecting arbitrary widget subcommands.c C se h | _ | | _ | i | _ } | i } | d | _ | i d | | i ƒ | i | | i ƒ d S( Nt _origt rename( t selft dictt widgett tkt _wt wt origt callt createcommandt dispatch( R R R R ( ( t. /usr/lib/python2.4/idlelib/WidgetRedirector.pyt __init__ s c C s d | i i i | i i f S( Ns WidgetRedirector(%s<%s>)( R R t __class__t __name__R ( R ( ( R t __repr__ s c C s{ x$ | i i ƒ D] } | i | ƒ q W| i } | ` | i } | ` | i } | i } | i | ƒ | i d | | ƒ d S( NR ( R R t keyst namet unregisterR R R R R t deletecommandR ( R R R R R R ( ( R t close s c C sT | i i | ƒ o t | } n t | | ƒ } | | i | <t | i | | ƒ | S( N( R R t has_keyR t previoust OriginalCommandt functiont setattrR ( R R R R ( ( R t register s c C sa | i i | ƒ oF | i | } | i | =t | i | ƒ o t | i | ƒ n | Sn d Sd S( N( R R R R R t hasattrR t delattrt None( R R R ( ( R R ( s c G sf | i i | ƒ } y6 | o | | Œ Sn | i i | i | f | ƒ SWn t j o d Sn Xd S( Nt ( R R t gett cmdt mt argsR R R t TclError( R R# R% R$ ( ( R R 2 s !( R t __module__t __doc__R R R R R R ( ( ( R R s R c B s# t Z d „ Z d „ Z d „ Z RS( Nc C sR | | _ | | _ | i | _ | i | _ | i i | _ | i | i f | _ d S( N( t redirR R R R R t tk_callt orig_and_name( R R) R ( ( R R ? s c C s d | i | i f S( Ns OriginalCommand(%r, %r)( R R) R ( R ( ( R R G s c G s | i | i | ƒ S( N( R R* R+ R% ( R R% ( ( R t __call__J s ( R R' R R R, ( ( ( R R = s c C s[ t ƒ } t ƒ } | i ƒ | i ƒ t | ƒ } d „ } | i d | ƒ a | i ƒ d S( Nc G s d G| GHt | Œ d S( Nt insert( R% t orig_insert( R% ( ( R t my_insertU s R- ( t Tkt roott Textt textt packt focus_setR R) R/ R R. t mainloop( R3 R) R/ R1 ( ( R t mainN s t __main__N( t TkinterR R R7 R ( R7 R R ( ( R t ? s 9