File: //lib64/python2.7/Demo/tkinter/matt/dialog-box.pyc
ó
¿œ^c @ sG d d l Td d l m Z d e f d „ ƒ YZ e ƒ Z e j ƒ d S( iÿÿÿÿ( t *( t Dialogt Testc B s/ e Z d „ Z d „ Z d „ Z d d „ Z RS( c C s d GHd S( Nt hi( ( t self( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt printit s c
C s1 t | d d d d d d d d d d ƒ} | j S(
sð Create a top-level dialog with some buttons.
This uses the Dialog class, which is a wrapper around the Tcl/Tk
tk_dialog script. The function returns 0 if the user clicks 'yes'
or 1 if the user clicks 'no'.
t titles fred the dialog boxt texts click on a choicet bitmapt infot defaulti t stringst yest no( R R
( R t num( R t d( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt
makeWindow s c C sr t | d d d d d | j ƒ| _ | j j d t d t ƒ t | d d d | j ƒ| _ | j j d t ƒ d S( NR t QUITt
foregroundt redt commandt sidet fills Make a New Window( t Buttont quitR t packt LEFTt BOTHR t hi_there( R ( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt
createWidgets. s c C s4 t j | | ƒ t j | ƒ d | _ | j ƒ d S( Ni ( t Framet __init__t Packt configt windownumR ( R t master( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyR 9 s
N( t __name__t
__module__R R R t NoneR ( ( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyR s # N( t TkinterR R R t testt mainloop( ( ( s4 /usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt <module> s
8