%PDF- %PDF-
Direktori : /proc/thread-self/root/lib64/python2.7/Demo/tkinter/guido/ |
Current File : //proc/thread-self/root/lib64/python2.7/Demo/tkinter/guido/canvasevents.pyc |
� 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"