
VQc           @   sF   d  Z  d d l Td d d     YZ d   Z e d k rB e   n  d S(	   s.   Play with the new Tk 8.0 toplevel menu option.i(   t   *t   Appc           B   s   e  Z d    Z RS(   c         C   su  | |  _  t |  j   |  _ t |  j  |  _ |  j j d d  |  j j d d  |  j j d d  |  j j   |  j j d d d |  j  j  t |  j  |  _ |  j j d d  |  j j d d  |  j j d d	  t |  j d
 d |  _ |  j j d d  |  j j	 d d d |  j  |  j j	 d d d |  j  |  j j	 d d d |  j  t
 d |  j  |  _ d  S(   Nt   labelt   News   Open...t   Closet   Quitt   commandt   Cutt   Copyt   Pastet   namet   helps   About...t   Filet   menut   Editt   Help(   t   mastert   Menut   menubart   filemenut   add_commandt   add_separatort   quitt   editmenut   helpmenut   add_cascadet   Toplevelt   top(   t   selfR   (    (    s9   /usr/lib64/python2.7/Demo/tkinter/guido/newmenubardemo.pyt   __init__	   s$    	(   t   __name__t
   __module__R   (    (    (    s9   /usr/lib64/python2.7/Demo/tkinter/guido/newmenubardemo.pyR      s   c          C   s-   t    }  |  j   t |   } |  j   d  S(   N(   t   Tkt   withdrawR   t   mainloop(   t   roott   app(    (    s9   /usr/lib64/python2.7/Demo/tkinter/guido/newmenubardemo.pyt   main(   s    	
t   __main__N(    (   t   __doc__t   TkinterR   R%   R   (    (    (    s9   /usr/lib64/python2.7/Demo/tkinter/guido/newmenubardemo.pyt   <module>   s
   
!	