✏️ 正在编辑: mock_tk.pyo
路径:
/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyo
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
� �V~gc @ s� d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d d l m Z d e f d � � YZ d S( s� Classes that replace tkinter gui objects used by an object being tested. A gui object is anything with a master or parent parameter, which is typically required in spite of what the doc strings say. t Eventc B s e Z d Z d � Z RS( s� Minimal mock with attributes for testing event handlers. This is not a gui object, but is used as an argument for callbacks that access attributes of the event passed. If a callback ignores the event, other than the fact that is happened, pass 'event'. Keyboard, mouse, window, and other sources generate Event instances. Event instances have the following attributes: serial (number of event), time (of event), type (of event as number), widget (in which event occurred), and x,y (position of mouse). There are other attributes for specific events, such as keycode for key events. tkinter.Event.__doc__ has more but is still not complete. c K s | j j | � d S( s, Create event with attributes needed for testN( t __dict__t update( t selft kwds( ( s>