| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/idlelib/ |
Upload File : |
Ñò
ÉÉŽJc @ sU d d k Td d d „ ƒ YZ d d
d „ ƒ YZ d „ Z e d j o e ƒ n d S( iÿÿÿÿ( t *t WidgetRedirectorc B sD e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sä Support 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.
c C se h | _ | | _ | i | _ } | i } | d | _ | i d | | i ƒ | i | | i ƒ d S( Nt _origt rename( t _operationst widgett tkt _wt origt callt
createcommandt dispatch( t selfR R t w( ( s. /usr/lib/python2.6/idlelib/WidgetRedirector.pyt __init__ s
c C s d | i i i | i i f S( Ns WidgetRedirector(%s<%s>)( R t __class__t __name__R ( R ( ( s. /usr/lib/python2.6/idlelib/WidgetRedirector.pyt __repr__&