File: //proc/3/root/usr/lib/python2.4/Demo/tkinter/matt/rubber-line-demo-1.pyo
mò
‚=5Dc @ s4 d k Td e f d „ ƒ YZ e ƒ Z e i ƒ d S( ( t *t Testc B s8 t Z d „ Z d „ Z d „ Z d „ Z d d „ Z RS( Nc C s d GHd S( Nt hi( ( t self( ( t: /usr/lib/python2.4/Demo/tkinter/matt/rubber-line-demo-1.pyt printit s c C s{ t | d d d d d d d d d | i ƒ| _ | i i d
t d t ƒ t | d d
d d
ƒ| _ | i i d
t ƒ d S( Nt textt QUITt
backgroundt redt
foregroundt whitet heighti t commandt sidet fillt widtht 5i(
t ButtonR t quitR t packt BOTTOMt BOTHt Canvast canvasObjectt LEFT( R ( ( R t
createWidgets s c C s4 | i i | i ƒ | _ | i i | i ƒ | _ d S( N( R R t canvasxt eventt xt startxt canvasyt yt starty( R R ( ( R t mouseDown s c C s™ | i i | i ƒ } | i i | i ƒ } | i | i j oX | i | i j oE | i i | i
ƒ | i i | i | i | | ƒ | _
| i ƒ n d S( N(
R R R R R R R R R! t deletet rubberbandLinet create_linet update_idletasks( R R R R ( ( R t mouseMotion s &$c C sf t i | | ƒ t i | ƒ | i ƒ d | _ t i
| i d | i ƒ t i
| i d | i
ƒ d S( Ns
<Button-1>s <Button1-Motion>( t Framet __init__R t mastert Packt configR t NoneR$ t Widgett bindR R"