ó Afc @ sð d d l Td d l m Z m Z m Z d e f d „ ƒ YZ d d d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d „ Z e d k rì e ƒ n d S( iÿÿÿÿ( t *( t Ovalt Groupt CanvasTextR c B s e Z d d d „ Z RS( c C s | j j | j | | ƒ S( N( t canvast tag_bindt id( t selft sequencet command( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt bind s N( t __name__t __module__t NoneR ( ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyR s t Objectc B sY e Z d Z d d d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sÀ Base class for composite graphical objects. Objects belong to a canvas, and can be moved around on the canvas. They also belong to at most one ``pile'' of objects, and can be transferred between piles (or removed from their pile). Objects have a canonical ``x, y'' position which is moved when the object is moved. Where the object is relative to this position depends on the object; for simple objects, it may be their center. Objects have mouse sensitivity. They can be clicked, dragged and double-clicked. The behavior may actually be determined by the pile they are in. All instance attributes are public since the derived class may need them. i t redt objectc C sJ | | _ | | _ | | _ d | _ t | j ƒ | _ | j | | ƒ d S( N( R t xt yR t pileR t groupt createitems( R R R R t fillt text( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt __init__# s c C s t | j ƒ S( N( t strR ( R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt __str__+ s c C s” t | j | j d | j d | j d | j d d | d d ƒ| _ | j j | j ƒ t | j | j | j d | ƒ| _ | j j | j ƒ d S( Ni i R t widthi R ( R R R R t _Object__ovalR t addtag_withtagR t _Object__text( R R R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyR . s + c C sW | | k o d k n r d S| j j | | ƒ | j | | _ | j | | _ d S( Ni ( R t moveR R ( R t dxt dy( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt moveby7 s c C s" | j | | j | | j ƒ d S( N( R" R R ( R R R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt moveto> s c C sN | j r% | j j | ƒ d | _ n | | _ | j rJ | j j | ƒ n d S( N( R t deleteR t add( R R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyt transferA s c C s | j j ƒ d S( N( R t tkraise( R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyR' I s ( R R t __doc__R R R R" R# R&