config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/lib-tk/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyo

³ò
h”Rc	@s	dZddkTddkZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
„Zdefd„ƒYZd
„Z	defd„ƒYZ
d„ZedjoSe
ƒZeiƒeddddƒGHe	ddddddƒGHeddƒGHndS(súDialog boxes

This module handles dialog boxes. It contains the following
public symbols:

Dialog -- a base class for dialogs

askinteger -- get an integer from the user

askfloat -- get a float from the user

askstring -- get a string from the user
iÿÿÿÿ(t*NtDialogcBs_eZdZd	d„Zd„Zd„Zd„Zd	d„Zd	d„Z	d„Z
d„ZRS(
sZClass to open dialogs.

    This class is intended as a base class for custom dialogs
    cCs1ti||ƒ|iƒo|i|ƒn|o|i|ƒn||_d|_t|ƒ}|i	|ƒ|_
|iddddƒ|iƒ|i
ƒ|iƒ|i
p
||_
n|id|iƒ|idj	o/|id|iƒd|iƒdfƒn|i
iƒ|i|ƒdS(s˜Initialize a dialog.

        Arguments:

            parent -- a parent window (the application window)

            title -- the dialog title
        tpadxitpadytWM_DELETE_WINDOWs+%d+%di2N(tToplevelt__init__twinfo_viewablet	transientttitletparenttNonetresulttFrametbodyt
initial_focustpackt	buttonboxtwait_visibilitytgrab_settprotocoltcanceltgeometrytwinfo_rootxtwinfo_rootyt	focus_settwait_window(tselfR
R	R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR&s*

		





cCsd|_ti|ƒdS(sDestroy the windowN(RRRtdestroy(R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRUs	cCsdS(s«create dialog body.

        return widget that should have initial focus.
        This method should be overridden, and is called
        by the __init__ method.
        N((Rtmaster((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR]sc
CsÀt|ƒ}t|ddddd|idtƒ}|idtdd	d
d	ƒt|ddddd|iƒ}|idtdd	d
d	ƒ|id|iƒ|id
|iƒ|iƒdS(s[add standard button box.

        override if you do not want the standard buttons
        ttexttOKtwidthi
tcommandtdefaulttsideRiRtCancels<Return>s<Escape>N(R
tButtontoktACTIVERtLEFTRtbind(Rtboxtw((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRfs'!cCsV|iƒp|iiƒdSn|iƒ|iƒz|iƒWd|iƒXdS(N(tvalidateRRtwithdrawtupdate_idletaskstapplyR(Rtevent((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR&{s



cCs/|idj	o|iiƒn|iƒdS(N(R
RRR(RR0((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR‰scCsdS(s¨validate the data

        This method is called automatically to validate the data before the
        dialog is destroyed. By default, it always validates OK.
        i((R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR,“scCsdS(s¡process the data

        This method is called automatically to process the data, *after*
        the dialog is destroyed. By default, it does nothing.
        N((R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR/œsN(t__name__t
__module__t__doc__RRRRRR&RR,R/(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRs/				
		t_QueryDialogcBs8eZddddd„Zd„Zd„Zd„ZRS(cCs[|pddk}|i}n||_||_||_||_ti|||ƒdS(Niÿÿÿÿ(tTkintert
_default_roottprompttminvaluetmaxvaluetinitialvalueRR(RR	R7R:R8R9R
R5((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR«s
				cCsd|_ti|ƒdS(N(RtentryRR(R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR¼s	cCs­t|d|idtƒ}|idddddtƒt|dd	ƒ|_|iidd
dddttƒ|io-|ii	d|iƒ|ii
dtƒn|iS(NRtjustifytrowiRitstickytnameR;i(tLabelR7R(tgridtWtEntryR;tER:tinserttselect_rangetEND(RRR+((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRÀs#
c	Csêddk}y|iƒ}Wn4tj
o(|id|idd|ƒdSnX|idj	o5||ijo%|idd|id|ƒdSn|idj	o5||ijo%|idd	|id|ƒdSn||_d
S(Niÿÿÿÿs
Illegal values
Please try againR
is	Too smalls2The allowed minimum value is %s. Please try again.s	Too larges2The allowed maximum value is %s. Please try again.i(	ttkMessageBoxt	getresultt
ValueErrortshowwarningterrormessageR8RR9R(RRHR((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR,Îs2
	 
 
	N(R1R2RRRRR,(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR4©s		t
_QueryIntegercBseZdZd„ZRS(sNot an integer.cCst|iiƒƒS(N(tintR;tget(R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRIõs(R1R2RLRI(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRMóscKst|||}|iS(s¼get an integer from the user

    Arguments:

        title -- the dialog title
        prompt -- the label text
        **kw -- see SimpleDialog class

    Return value is an integer
    (RMR(R	R7tkwtd((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyt
askintegerøst_QueryFloatcBseZdZd„ZRS(sNot a floating point value.cCst|iiƒƒS(N(tfloatR;RO(R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRIs(R1R2RLRI(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRSscKst|||}|iS(s¶get a float from the user

    Arguments:

        title -- the dialog title
        prompt -- the label text
        **kw -- see SimpleDialog class

    Return value is a float
    (RSR(R	R7RPRQ((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pytaskfloatst_QueryStringcBs#eZd„Zd„Zd„ZRS(cOsH|idƒo|d|_|d=n
d|_ti|||ŽdS(Ntshow(thas_keyt_QueryString__showRR4R(RtargsRP((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRs

	cCs=ti||ƒ}|idj	o|id|iƒn|S(NRW(R4RRYRt	configure(RRR;((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyR"scCs
|iiƒS(N(R;RO(R((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRI(s(R1R2RRRI(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyRVs		cKst|||}|iS(s¸get a string from the user

    Arguments:

        title -- the dialog title
        prompt -- the label text
        **kw -- see SimpleDialog class

    Return value is a string
    (RVR(R	R7RPRQ((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pyt	askstring+st__main__tSpams	Egg countR:isEgg weight
(in tons)R8iR9ids	Egg labeli(R3R5tosRRR4RMRRRSRURVR\R1tTktroottupdate(((s1/usr/local/lib/python2.5/lib-tk/tkSimpleDialog.pys<module>s 
ŠJ			
	


Man Man