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/Tkinter.pyc

hRc@sdZdZddkZeidjoddkZnddkZeZeiZddkTddk	Tyddk
Z
e
Z[
Wnej
o
e
ZnXdZeeiZeeiZeiZeiZeiZyeiWnej
oe
e_nXyeiWnej
oe
e_nXdZy
eiZWnej
onXdZy
eiZWnej
onXd	fd
YZdae
adZdZ d
dZ!da"dfdYZ#de#fdYZ$de#fdYZ%de#fdYZ&de#fdYZ'ddZ(e)Z*eZ+dZ,dfdYZ-dfdYZ.d fd!YZ/d"e-e/fd#YZ0e
e
d"dd$Z1d%fd&YZ2d'fd(YZ3d)fd*YZ4d+e-fd,YZ5d-e5e2e3e4fd.YZ6d/e5e/fd0YZ7d1e6fd2YZ8d3Z9d4Z:d5Z;d6Z<e
d7Z=d8e6fd9YZ>d:e6fd;YZ?d<e6fd=YZ@d>e6fd?YZAd@e6fdAYZBdBe6fdCYZCdDe6fdEYZDdFe6fdGYZEdHe6fdIYZFdJe6fdKYZGdLe6fdMYZHdNe6fdOYZIdPe6fdQYZJdRfdSYZKdTeEfdUYZLdVfdWYZMdXeMfdYYZNdZeMfd[YZOd\ZPd]ZQd^e6fd_YZRd`e6fdaYZSdbe6fdcYZTdde8fdeYZUdfe8fdgYZVdhZWeXdijoeWndS(js2Wrapper functions for Tcl/Tk.

Tkinter provides classes which allow the display, positioning and
control of widgets. Toplevel widgets are Tk and Toplevel. Other
widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox
LabelFrame and PanedWindow.

Properties of the widgets are specified with keyword arguments.
Keyword arguments have the same name as the corresponding resource
under Tk.

Widgets are positioned with one of the geometry managers Place, Pack
or Grid. These managers can be called with methods place, pack, grid
available in every Widget.

Actions are bound to events by resources (e.g. keyword argument
command) or with the method bind.

Example (Hello, World):
import Tkinter
from Tkconstants import *
tk = Tkinter.Tk()
frame = Tkinter.Frame(tk, relief=RIDGE, borderwidth=2)
frame.pack(fill=BOTH,expand=1)
label = Tkinter.Label(frame, text="Hello, World")
label.pack(fill=X, expand=1)
button = Tkinter.Button(frame,text="Exit",command=tk.destroy)
button.pack(side=BOTTOM)
tk.mainloop()
s$Revision: 67737 $iNtwin32(t*icCsfd}xY|D]Q}t|ttfjo|t|}q
|dj	o||f}q
q
W|S(sInternal function.(N(ttypet	TupleTypetListTypet_flattentNone(ttupletrestitem((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR@s
cCst|tjo|Snt|ttfjo|Snh}xst|D]e}y|i|WqOttfj
o9}dG|GHx)|iD]\}}|||<qWqOXqOW|SdS(sInternal function.s_cnfmerge: fallback due to:N(	RtDictionaryTypetNoneTypet
StringTypeRtupdatetAttributeErrort	TypeErrortitems(tcnfstcnftctmsgtktv((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	_cnfmergeMs
	
tEventcBseZdZRS(sContainer for the properties of an event.

    Instances of this type are generated if one of the following events occurs:

    KeyPress, KeyRelease - for keyboard events
    ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
    Visibility, Unmap, Map, Expose, FocusIn, FocusOut, Circulate,
    Colormap, Gravity, Reparent, Property, Destroy, Activate,
    Deactivate - for window events.

    If a callback function for one of these events is registered
    using bind, bind_all, bind_class, or tag_bind, the callback is
    called with an Event as first argument. It will have the
    following attributes (in braces are the event types for which
    the attribute is valid):

        serial - serial number of event
    num - mouse button pressed (ButtonPress, ButtonRelease)
    focus - whether the window has the focus (Enter, Leave)
    height - height of the exposed window (Configure, Expose)
    width - width of the exposed window (Configure, Expose)
    keycode - keycode of the pressed key (KeyPress, KeyRelease)
    state - state of the event as a number (ButtonPress, ButtonRelease,
                            Enter, KeyPress, KeyRelease,
                            Leave, Motion)
    state - state as a string (Visibility)
    time - when the event occurred
    x - x-position of the mouse
    y - y-position of the mouse
    x_root - x-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    y_root - y-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    char - pressed character (KeyPress, KeyRelease)
    send_event - see X/Windows documentation
    keysym - keysym of the event as a string (KeyPress, KeyRelease)
    keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
    type - type of the event as a number
    widget - widget in which the event occurred
    delta - delta of wheel movement (MouseWheel)
    (t__name__t
__module__t__doc__(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRas)cCsdadabdS(sInhibit setting of default root window.

    Call this function to inhibit that the first instance of
    Tk is used for windows without an explicit parent window.
    iN(t_support_default_rootRt
_default_root(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
NoDefaultRootscCsdS(sInternal function.N((terr((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_tkerrorst0cCs
t|dS(sBInternal function. Calling it will throw the exception SystemExit.N(t
SystemExit(tcode((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_exitsitVariablecBsteZdZdZddddZdZdZdZdZ	dZ
e
ZdZd	Z
d
ZRS(sClass to define value holders for e.g. buttons.

    Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations
    that constrain the type of the value returned from get().tcCs|p
t}n||_|i|_|o
||_ndtt|_td7a|djo|i|n1|ii	dd|ip|i|i
ndS(s.Construct a variable

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to "")
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        tPY_VARitinfotexistsN(Rt_masterttkt_tkt_nametreprt_varnumRtsettcallt_default(tselftmastertvaluetname((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__init__s
	


cCs|ii|idS(sUnset the variable in Tcl.N(R,tglobalunsetvarR-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__del__scCs|iS(s'Return the name of the variable in Tcl.(R-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__str__scCs|ii|i|S(sSet the variable to VALUE.(R,tglobalsetvarR-(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0scCs|ii|iS(sReturn value of variable.(R,tglobalgetvarR-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgetscCs5|ii|}|iidd|i|||S(s
Define a trace callback for the variable.

        MODE is one of "r", "w", "u" for read, write, undefine.
        CALLBACK must be a function which is called when
        the variable is read, written or undefined.

        Return the name of the callback.
        ttracetvariable(R*t	_registerR,R1R-(R3tmodetcallbacktcbname((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttrace_variables	cCs3|iidd|i|||ii|dS(sDelete the trace callback for a variable.

        MODE is one of "r", "w", "u" for read, write, undefine.
        CBNAME is the name of the callback returned from trace_variable or trace.
        R>tvdeleteN(R,R1R-R*t
deletecommand(R3RARC((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
trace_vdeletescCs4t|ii|ii|iidd|iS(s&Return all trace callback information.R>tvinfo(tmapR,tsplitt	splitlistR1R-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttrace_vinfoscCs)|ii|iijo|i|ijS(sComparison for equality (==).

        Note: if the Variable's master matters to behavior
        also compare self._master == other._master
        (t	__class__RR-(R3tother((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__eq__sN(RRRR2RR7R9R:R0R=RDR>RGRLRO(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR%s							t	StringVarcBs/eZdZdZddddZdZRS(s#Value holder for strings variables.R&cCsti||||dS(s6Construct a string variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to "")
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(R%R7(R3R4R5R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s
cCs7|ii|i}t|to|Snt|S(s#Return value of variable as string.(R,R<R-t
isinstancet
basestringtstr(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=sN(RRRR2RR7R=(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRPstIntVarcBs8eZdZdZddddZdZdZRS(s#Value holder for integer variables.icCsti||||dS(s7Construct an integer variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to 0)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(R%R7(R3R4R5R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
s
cCs0t|tot|}nti||S(s;Set the variable to value, converting booleans to integers.(RQtbooltintR%R0(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0scCst|ii|iS(s/Return the value of the variable as an integer.(tgetintR,R<R-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=sN(RRRR2RR7R0R=(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRTs
	t	DoubleVarcBs/eZdZdZddddZdZRS(s!Value holder for float variables.gcCsti||||dS(s6Construct a float variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to 0.0)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(R%R7(R3R4R5R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7#s
cCst|ii|iS(s,Return the value of the variable as a float.(t	getdoubleR,R<R-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=/sN(RRRR2RR7R=(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRX st
BooleanVarcBs/eZdZeZddddZdZRS(s#Value holder for boolean variables.cCsti||||dS(s:Construct a boolean variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to False)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(R%R7(R3R4R5R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR76s
cCs|ii|ii|iS(s+Return the value of the variable as a bool.(R,t
getbooleanR<R-(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=BsN(RRRtFalseR2RR7R=(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZ3scCstii|dS(sRun the main loop of Tcl.N(RR+tmainloop(tn((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]FscCstii|S(s1Convert true and false to integer values 1 and 0.(RR+R[(ts((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR[NstMisccBseZdZdZdZdZddZdZdZ	dZ
ddZeZdd	Z
dd
ZdddZdd
ZeZeZdZdZeZdZdZdZdZdZdZdZddZdZ dZ!ddZ"dZ#dZ$dZ%dZ&d Z'd!Z(d"Z)d#Z*dd$Z+dd%Z,d&Z-d'Z.dd(Z/d)Z0d*Z1d+Z2d,Z3d-Z4d.Z5dd/Z+dd0Z6e6Z7dd1Z8dd2Z9dd3Z:d4Z;d5Z<d6Z=d7Z>dd8Z?d9Z@d:ZAd;ZBd<ZCd=ZDd>ZEdd?ZFd@ZGdAZHdBZIdCZJddDZKdEZLdFZMdGZNdHZOdIZPdJZQdKZRdLZSdMZTdNZUdOZVdPZWdQZXdRZYdSZZdTZ[dUZ\dVZ]dWZ^dXZ_dYZ`dZZadd[Zbd\Zcd]Zdd^Zed_Zfd`ZgdaZhdbZidcZjddZkdeZldfZmddgZndhdiZoddddjZpddkZqddddlZrdmZsddddnZtdoZuddpZvdqZwdrZxdsZydtZzduZ{ddvZ|dwZ}e}Z~ddhdxZeZdyZdZdieZdZdZdZddZeZdZeZdZdZdZdgZedZeZdZeZdZdddddZeZdZhdZeZdZedZhdZeZdZeZdddZdZdZdZddZdZdZRS(sRInternal class.

    Base class which defines methods common for interior widgets.cCsE|idj	o1x!|iD]}|ii|qWd|_ndS(skInternal function.

        Delete all Tcl commands created for
        this widget in the Tcl interpreter.N(t_tclCommandsRR+RF(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytdestroyZs

cCs>|ii|y|ii|Wntj
onXdS(sDInternal function.

        Delete the Tcl command provided in NAME.N(R+RFRatremovet
ValueError(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRFds
cCs"|ii|iidd|S(sSet Tcl internal variable, whether the look and feel
        should adhere to Motif.

        A parameter of 1 means adhere to Motif (e.g. no color
        change if mouse passes over slider).
        Returns the set value.R0ttk_strictMotif(R+R[R1(R3tboolean((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRenscCs|iiddS(sDChange the color scheme to light brown as used in Tk 3.6 and before.t	tk_bisqueN(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRgwscOs.|iidt|t|idS(sSet a new color scheme for all widget elements.

        A single color as argument will cause that all colors of Tk
        widget elements are derived from this.
        Alternatively several keyword parameters and its associated
        colors can be given. The following keywords are valid:
        activeBackground, foreground, selectColor,
        activeForeground, highlightBackground, selectBackground,
        background, highlightColor, selectForeground,
        disabledForeground, insertBackground, troughColor.t
tk_setPaletteN(s
tk_setPalette(R+R1RR(R3targstkw((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRhzs	cGsdS(s)Do not use. Needed in Tk 3.6 and earlier.N((R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tk_menuBarsR'cCs|iidd|dS(sWait until the variable is modified.

        A parameter of type IntVar, StringVar, DoubleVar or
        BooleanVar must be given.ttkwaitR?N(R+R1(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wait_variablescCs4|djo
|}n|iidd|idS(sQWait until a WIDGET is destroyed.

        If no parameter is given self is used.RltwindowN(RR+R1t_w(R3Rn((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwait_windows

cCs4|djo
|}n|iidd|idS(sxWait until the visibility of a WIDGET changes
        (e.g. it appears).

        If no parameter is given self is used.Rlt
visibilityN(RR+R1Ro(R3Rn((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwait_visibilitys

t1cCs|ii||dS(sSet Tcl variable NAME to VALUE.N(R+tsetvar(R3R6R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRtscCs|ii|S(s"Return value of Tcl variable NAME.(R+tgetvar(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRuscCs|ii|S(sPReturn a boolean value for Tcl boolean values true and false given as parameter.(R+R[(R3R_((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR[scCs|iid|idS(sDirect input focus to this widget.

        If the application currently does not have the focus
        this widget will get the focus if the application gets
        the focus through the window manager.tfocusN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	focus_setscCs|iidd|idS(stDirect input focus to this widget even if the
        application does not have the focus. Use with
        caution!Rvs-forceN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfocus_forcescCs<|iid}|djp|odSn|i|S(sReturn the widget which has currently the focus in the
        application.

        Use focus_displayof to allow working with several
        displays. Return None if application does not have
        the focus.RvtnoneN(R+R1Rt
_nametowidget(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	focus_getscCsE|iidd|i}|djp|odSn|i|S(sReturn the widget which has currently the focus on the
        display where this widget is located.

        Return None if the application does not have the focus.Rvs
-displayofRyN(R+R1RoRRz(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfocus_displayofscCsE|iidd|i}|djp|odSn|i|S(syReturn the widget which would have the focus if top level
        for this widget gets the focus from the window manager.Rvs-lastforRyN(R+R1RoRRz(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
focus_lastforscCs|iiddS(sXThe widget under mouse will get automatically focus. Can not
        be disabled easily.ttk_focusFollowsMouseN(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR~scCs4|iid|i}|pdSn|i|S(snReturn the next widget in the focus order which follows
        widget which has currently the focus.

        The focus order first goes to the next child, then to
        the children of the child recursively and then to the
        next sibling which is higher in the stacking order.  A
        widget is omitted if it has the takefocus resource set
        to 0.ttk_focusNextN(R+R1RoRRz(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs	cCs4|iid|i}|pdSn|i|S(sHReturn previous widget in the focus order. See tk_focusNext for details.ttk_focusPrevN(R+R1RoRRz(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscs_piid|n>fd}i|iid|SdS(sCall function once after given time.

        MS specifies the time in milliseconds. FUNC gives the
        function which shall be called. Additional parameters
        are given as parameters to the function call.  Return
        identifier to cancel scheduling with after_cancel.tafterc	s=zWdyiWntj
onXXdS(N(RFtTclError((R3RiR6tfunc(s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcallitsN(R+R1R@(R3tmsRRiR((R3RiRR6s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs
cGs|id||S(sCall FUNC once if the Tcl main loop has no event to
        process.

        Return an identifier to cancel the scheduling with
        after_cancel.tidle(R(R3RRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
after_idlescCsoy?|iidd|}|ii|d}|i|Wntj
onX|iidd|dS(sCancel scheduling of function identified with ID.

        Identifier returned by after or after_idle must be
        given as first parameter.RR(itcancelN(R+R1RKRFR(R3tidtdatatscript((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytafter_cancelsicCs!|iid|i|dS(sRing a display's bell.tbellN(sbell(R+R1t
_displayof(R3t	displayof((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscKs|iid|i|S(sRetrieve data from the clipboard on window's display.

        The window keyword defaults to the root window of the Tkinter
        application.

        The type keyword specifies the form in which the data is
        to be returned and should be an atom name such as STRING
        or FILE_NAME.  Type defaults to STRING.

        This command is equivalent to:

        selection_get(CLIPBOARD)
        t	clipboardR=(Rsget(R+R1t_options(R3Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
clipboard_getscKsB|idp|i|d<n|iid|i|dS(sClear the data in the Tk clipboard.

        A widget specified for the optional displayof keyword
        argument specifies the target display.RRtclearN(s	clipboardsclear(thas_keyRoR+R1R(R3Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytclipboard_clear$scKsL|idp|i|d<n|iid|i|d|fdS(sAppend STRING to the Tk clipboard.

        A widget specified at the optional displayof keyword
        argument specifies the target display. The clipboard
        can be retrieved with selection_get.RRtappends--N(s	clipboardsappend(RRoR+R1R(R3tstringRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytclipboard_append+s	cCs7|iidd|i}|pdSn|i|S(sOReturn widget which has currently the grab in this application
        or None.tgrabtcurrentN(R+R1RoRRz(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrab_current5scCs|iidd|idS(s.Release grab for this widget if currently set.RtreleaseN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrab_release;scCs|iidd|idS(swSet grab for this widget.

        A grab directs all events to this and descendant
        widgets in the application.RR0N(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrab_set>scCs |iiddd|idS(sSet global grab for this widget.

        A global grab directs all events to this and
        descendant widgets on the display. Use with caution -
        other applications do not get events anymore.RR0s-globalN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrab_set_globalDscCs6|iidd|i}|djo
d}n|S(sYReturn None, "local" or "global" if this widget has
        no, a local or a global grab.RtstatusRyN(R+R1RoR(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrab_statusKs

cCs|iid|i|dS(s(Lower this widget in the stacking order.tlowerN(R+R1Ro(R3t	belowThis((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRQscCs |iidd|||dS(sSet a VALUE (second parameter) for an option
        PATTERN (first parameter).

        An optional third parameter gives the numeric priority
        (defaults to 80).toptiontaddN(R+R1(R3tpatternR5tpriority((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
option_addTscCs|iidddS(sPClear the option database.

        It will be reloaded if option_add is called.RRN(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytoption_clear[scCs|iidd|i||S(sReturn the value for an option NAME for this widget
        with CLASSNAME.

        Values with higher priority override lower values.RR=(R+R1Ro(R3R6t	className((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
option_get`scCs|iidd||dS(svRead file FILENAME into the option database.

        An optional second parameter gives the numeric
        priority.RtreadfileN(R+R1(R3tfileNameR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytoption_readfilefscKsB|idp|i|d<n|iid|i|dS(sClear the current X selection.Rt	selectionRN(s	selectionsclear(RRoR+R1R(R3Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_clearlscKs>|idp|i|d<n|iid|i|S(sReturn the contents of the current X selection.

        A keyword parameter selection specifies the name of
        the selection and defaults to PRIMARY.  A keyword
        parameter displayof specifies a widget on the display
        to use.RRR=(s	selectionsget(RRoR+R1R(R3Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
selection_getpscKs=|i|}|iid|i||i|fdS(sSpecify a function COMMAND to call if the X
        selection owned by this widget is queried by another
        application.

        This function must return the contents of the
        selection. The function will be called with the
        arguments OFFSET and LENGTH which allows the chunking
        of very long selections. The following keyword
        parameters can be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).RthandleN(s	selectionR(R@R+R1RRo(R3tcommandRjR6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_handleys	cKs+|iid|i||ifdS(sBecome owner of X selection.

        A keyword parameter selection specifies the name of
        the selection (default PRIMARY).RtownN(s	selectionR(R+R1RRo(R3Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
selection_owns	cKs\|idp|i|d<n|iid|i|}|pdSn|i|S(sReturn owner of X selection.

        The following keyword parameter can
        be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).RRR(s	selectionsownN(RRoR+R1RRRz(R3RjR6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_own_getscGs|iid||f|S(sDSend Tcl command CMD to different interpreter INTERP to be executed.tsend(R+R1(R3tinterptcmdRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|iid|i|dS(s(Lower this widget in the stacking order.RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|iid|i|dS(s(Raise this widget in the stacking order.traiseN(R+R1Ro(R3t	aboveThis((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttkraisescCs|iidd|i|S(sUseless. Not implemented in Tk.R+t
colormodel(R+R1Ro(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs0d|i||f}t|ii|S(s*Return integer which represents atom NAME.twinfotatom(RR(RRWR+R1(R3R6RRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
winfo_atomscCs*d|i||f}|ii|S(s'Return name of atom with identifier ID.Rtatomname(swinfoR(RR+R1(R3RRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_atomnamescCst|iidd|iS(s7Return number of cells in the colormap for this widget.Rtcells(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_cellsscCslg}x_|ii|iidd|iD]6}y|i|i|Wq.tj
oq.Xq.W|S(s?Return a list of all widgets which are children of this widget.Rtchildren(R+RKR1RoRRztKeyError(R3tresulttchild((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_childrens	cCs|iidd|iS(s(Return window class name of this widget.Rtclass(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_classscCs%|ii|iidd|iS(s?Return true if at the last color request the colormap was full.Rtcolormapfull(R+R[R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_colormapfulls	cCsKd|i|||f}|ii|}|pdSn|i|S(s@Return the widget which is at the root coordinates ROOTX, ROOTY.Rt
containing(swinfoRN(RR+R1RRz(R3trootXtrootYRRiR6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_containings
cCst|iidd|iS(s$Return the number of bits per pixel.Rtdepth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_depthscCst|iidd|iS(s"Return true if this widget exists.RR)(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_existsscCs"t|iidd|i|S(sWReturn the number of pixels for the given distance NUMBER
        (e.g. "3c") as float.Rtfpixels(RYR+R1Ro(R3tnumber((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
winfo_fpixelsscCs|iidd|iS(sFReturn geometry string for this widget in the form "widthxheight+X+Y".Rtgeometry(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_geometryscCst|iidd|iS(sReturn height of this widget.Rtheight(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_heightscCs%|ii|iidd|iS(s%Return identifier ID for this widget.RR(R+RWR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_ids	cCs/d|i|}|ii|ii|S(s9Return the name of all Tcl interpreters for this display.Rtinterps(swinfoR(RR+RKR1(R3RRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
winfo_interpsscCst|iidd|iS(s%Return true if this widget is mapped.Rtismapped(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_ismappedscCs|iidd|iS(s0Return the window mananger name for this widget.Rtmanager(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
winfo_managerscCs|iidd|iS(sReturn the name of this widget.RR6(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
winfo_namescCs|iidd|iS(s-Return the name of the parent of this widget.Rtparent(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_parentscCs*d|i||f}|ii|S(s.Return the pathname of the widget given by ID.Rtpathname(swinfospathname(RR+R1(R3RRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_pathnamescCs"t|iidd|i|S(s'Rounded integer value of winfo_fpixels.Rtpixels(RWR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_pixelsscCst|iidd|iS(s:Return the x coordinate of the pointer on the root window.Rtpointerx(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_pointerxscCs"|i|iidd|iS(sHReturn a tuple of x and y coordinates of the pointer on the root window.Rt	pointerxy(t_getintsR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_pointerxyscCst|iidd|iS(s:Return the y coordinate of the pointer on the root window.Rtpointery(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_pointeryscCst|iidd|iS(s'Return requested height of this widget.Rt	reqheight(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_reqheightscCst|iidd|iS(s&Return requested width of this widget.Rtreqwidth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_reqwidthscCs%|i|iidd|i|S(sUReturn tuple of decimal values for red, green, blue for
        COLOR in this widget.Rtrgb(RR+R1Ro(R3tcolor((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	winfo_rgbscCst|iidd|iS(sSReturn x coordinate of upper left corner of this widget on the
        root window.Rtrootx(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_rootxscCst|iidd|iS(sSReturn y coordinate of upper left corner of this widget on the
        root window.Rtrooty(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_rootyscCs|iidd|iS(s&Return the screen name of this widget.Rtscreen(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screen#scCst|iidd|iS(sTReturn the number of the cells in the colormap of the screen
        of this widget.Rtscreencells(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screencells&scCst|iidd|iS(s\Return the number of bits per pixel of the root window of the
        screen of this widget.Rtscreendepth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screendepth+scCst|iidd|iS(sXReturn the number of pixels of the height of the screen of this widget
        in pixel.Rtscreenheight(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screenheight0scCst|iidd|iS(sUReturn the number of pixels of the height of the screen of
        this widget in mm.Rtscreenmmheight(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screenmmheight5scCst|iidd|iS(sTReturn the number of pixels of the width of the screen of
        this widget in mm.Rt
screenmmwidth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screenmmwidth:scCs|iidd|iS(sReturn one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the default
        colormodel of this screen.Rtscreenvisual(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screenvisual?scCst|iidd|iS(sWReturn the number of pixels of the width of the screen of
        this widget in pixel.Rtscreenwidth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_screenwidthDscCs|iidd|iS(sxReturn information of the X-Server of the screen of this widget in
        the form "XmajorRminor vendor vendorVersion".Rtserver(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_serverIscCs"|i|iidd|iS(s*Return the toplevel widget of this widget.Rttoplevel(RzR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_toplevelMscCst|iidd|iS(sBReturn true if the widget and all its higher ancestors are mapped.Rtviewable(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_viewableQscCs|iidd|iS(sReturn one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the
        colormodel of this widget.Rtvisual(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_visualUscCs|iidd|iS(s7Return the X identifier for the visual for this widget.Rtvisualid(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_visualidZscCst|ii|iidd|i|odpd}t|tjo|ii|g}nt|i|S(sReturn a list of all visuals available for the screen
        of this widget.

        Each item in the list consists of a visual name (see winfo_visual), a
        depth and if INCLUDEIDS=1 is given also the X identifier.Rtvisualsavailablet
includeidsN(	R+RJR1RoRRRRIt_Misc__winfo_parseitem(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_visualsavailable]s	cCs"|d tt|i|dS(sInternal function.i(RRIt_Misc__winfo_getint(R3tt((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__winfo_parseitemiscCs
t|dS(sInternal function.i(RV(R3tx((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__winfo_getintlscCst|iidd|iS(sReturn the height of the virtual root window associated with this
        widget in pixels. If there is no virtual root window return the
        height of the screen.Rtvrootheight(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_vrootheightoscCst|iidd|iS(sReturn the width of the virtual root window associated with this
        widget in pixel. If there is no virtual root window return the
        width of the screen.Rt
vrootwidth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_vrootwidthuscCst|iidd|iS(siReturn the x offset of the virtual root relative to the root
        window of the screen of this widget.Rtvrootx(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_vrootx{scCst|iidd|iS(siReturn the y offset of the virtual root relative to the root
        window of the screen of this widget.Rtvrooty(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_vrootyscCst|iidd|iS(s Return the width of this widget.Rtwidth(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_widthscCst|iidd|iS(sVReturn the x coordinate of the upper left corner of this widget
        in the parent.RR(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_xscCst|iidd|iS(sVReturn the y coordinate of the upper left corner of this widget
        in the parent.Rty(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwinfo_yscCs|iiddS(sEEnter event loop until all pending events have been processed by Tcl.R
N(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|iidddS(sEnter event loop until all idle callbacks have been called. This
        will update the display of windows but not process events caused by
        the user.R
t	idletasksN(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytupdate_idletasksscCsP|djo&|ii|iid|iSn|iid|i|dS(s,Set or get the list of bindtags for this widget.

        With no argument return the list of all bindtags associated with
        this widget. With a list of strings as argument the bindtags are
        set to this list. The bindtags determine in which order events are
        processed (see bind).tbindtagsN(RR+RKR1Ro(R3ttagList((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR/s
	icCst|tjo|ii|||fn|o^|i||i|}d|odpd||if}|ii|||f|Sn?|o|ii||fSn|ii|ii|SdS(sInternal function.s"%sif {"[%s %s]" == "break"} break
t+R&N(RRR+R1R@t_substitutet_subst_format_strRK(R3twhattsequenceRRtneedcleanuptfuncidR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_binds	cCs|id|if|||S(sOBind to this widget at event SEQUENCE a call to function FUNC.

        SEQUENCE is a string of concatenated event
        patterns. An event pattern is of the form
        <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
        of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
        Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
        B3, Alt, Button4, B4, Double, Button5, B5 Triple,
        Mod1, M1. TYPE is one of Activate, Enter, Map,
        ButtonPress, Button, Expose, Motion, ButtonRelease
        FocusIn, MouseWheel, Circulate, FocusOut, Property,
        Colormap, Gravity Reparent, Configure, KeyPress, Key,
        Unmap, Deactivate, KeyRelease Visibility, Destroy,
        Leave and DETAIL is the button number for ButtonPress,
        ButtonRelease and DETAIL is the Keysym for KeyPress and
        KeyRelease. Examples are
        <Control-Button-1> for pressing Control and mouse button 1 or
        <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
        An event pattern can also be a virtual event of the form
        <<AString>> where AString can be arbitrary. This
        event can be generated by event_generate.
        If events are concatenated they must appear shortly
        after each other.

        FUNC will be called if the event sequence occurs with an
        instance of Event as argument. If the return value of FUNC is
        "break" no further bound function is invoked.

        An additional boolean parameter ADD specifies whether FUNC will
        be called additionally to the other bound function or whether
        it will replace the previous function.

        Bind will return an identifier to allow deletion of the bound function with
        unbind without memory leak.

        If FUNC or SEQUENCE is omitted the bound function or list
        of bound events are returned.tbind(R8Ro(R3R5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR9s'cCs8|iid|i|d|o|i|ndS(sWUnbind for this widget for event SEQUENCE  the
        function identified with FUNCID.R9R&N(R+R1RoRF(R3R5R7((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytunbindscCs|id|||dS(sBind to all widgets at an event SEQUENCE a call to function FUNC.
        An additional boolean parameter ADD specifies whether FUNC will
        be called additionally to the other bound function or whether
        it will replace the previous function. See bind for the return value.R9talli(sbindsall(R8(R3R5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytbind_allscCs|iidd|ddS(s8Unbind for all widgets for event SEQUENCE all functions.R9R;R&N(R+R1(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
unbind_allscCs|id|f|||dS(s=Bind to widgets with bindtag CLASSNAME at event
        SEQUENCE a call of function FUNC. An additional
        boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or
        whether it will replace the previous function. See bind for
        the return value.R9i(R8(R3RR5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
bind_classs	cCs|iid||ddS(sYUnbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
        all functions.R9R&N(R+R1(R3RR5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytunbind_classscCs|ii|dS(sCall the mainloop of Tk.N(R+R](R3R^((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]scCs|iidS(s8Quit the Tcl interpreter. All widgets will be destroyed.N(R+tquit(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR@scCs.|o#ttt|ii|SndS(sInternal function.N(RRIRWR+RK(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs.|o#ttt|ii|SndS(sInternal function.N(RRIRYR+RK(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_getdoublesscCs|o|ii|SndS(sInternal function.N(R+R[(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_getbooleanscCs7|od|fSn|djod|ifSndS(sInternal function.s
-displayofN((RRo(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs

cCsY|ot||f}n
t|}d}x#|iD]\}}|d	j	o|ddjo|d }nt|o|i|}nt|ttfog}x|D]k}t|tt	fpPqt|t	o|i
d|q|i
d|jodnd|qWdi|}n|d||f}q<q<W|S(
sInternal function.it_s%dt s{%s}s%st-(N(RRRtcallableR@RQRtlistRRRVRtjoin(R3RRjRRRtnvR	((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs.


)cCsnt|id}|}|dp|i}|d}nx'|D]}|pPn|i|}qGW|S(sPReturn the Tkinter instance of a widget identified by
        its Tcl name NAME.t.ii(RSRJt_rootR(R3R6twR^((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytnametowidget0sc	Cst|||i}tt|}y
|i}Wntj
onXy||i}Wntj
onX|ii|||o1|i	djo
g|_	n|i	i|n|S(sReturn a newly created Tcl function. If this
        function is called, the Python function FUNC will
        be executed. An optional function SUBST can
        be given which will be executed before FUNC.N(tCallWrappert__call__R.Rtim_funcRRR+t
createcommandRaRR(R3RtsubstR6tfR6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR@As 

cCs%|}x|io
|i}q	W|S(sInternal function.(R4(R3RL((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRKWs

s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%DRDcGst|t|ijo|Sn|ii}t}d}|\}}}}}	}
}}}
}}}}}}}}}}t}|||_|||_y|||_Wnt	j
onX|||_
||	|_||
|_|||_
|||_||
|_|||_||_y|||_Wnt	j
onX||_|||_||_y|i||_Wntj
o||_nX|||_|||_y|||_Wntj
od|_nX|fS(sInternal function.cSs,yt|SWntj
o|SnXdS(s?Tk changed behavior in 8.4.2, returning "??" rather more often.N(RVRd(R_((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgetint_eventfsi(tlent
_subst_formatR+R[RVRtserialtnumRvRRtkeycodetstatettimeR(RR+tchart
send_eventtkeysymt
keysym_numRRztwidgetRtx_rootty_roottdeltaRd(R3RiR[RWRTtnsigntbRSthRR_RRLRR+tAtEtKtNtWtTtXtYtDte((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR2`sN	?				cCsLddk}|i|i|i}}}|i}|i|||dS(sInternal function.iN(tsystexc_typet	exc_valuet
exc_tracebackRKtreport_callback_exception(R3Rqtexctvalttbtroot((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_report_exceptionsc	Cs>|ot||f}n|ot|}n|djokh}xZ|ii|iit|i|fD]+}|ddf|d||dd<quW|Snt|tjoO|ii|iit|i|d|f}|ddf|dSn|iit|i|f|i	|dS(sInternal function.iiREN(
RRR+RJR1RRoRRR(R3RRRjR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
_configures 
")	+cKs|id||S(sConfigure resources of a widget.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method keys.
        t	configure(R{(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR|scCs|ii|idd|S(s4Return the resource value for a KEY given as string.tcgetRE(R+R1Ro(R3tkey((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR}scCs|ih||<dS(N(R|(R3R~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__setitem__scCs.td|ii|ii|idS(s3Return a list of all resource names of this widget.cSs|ddS(ii((R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt<lambda>sR|(RIR+RJR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytkeyss	cCs|iS(s+Return the window path name of this widget.(Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR:st_noarg_cCsV|tijo&|i|iidd|iSn|iidd|i|dS(sSet or get the status for propagation of geometry information.

        A boolean argument specifies whether the geometry information
        of the slaves will determine the size of this widget. If no argument
        is given the current setting will be returned.
        tpackt	propagateN(R`RRBR+R1Ro(R3tflag((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytpack_propagatescCs1t|i|ii|iidd|iS(sHReturn a list of all slaves of this widget
        in its packing order.Rtslaves(RIRzR+RKR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytpack_slavess		cCs1t|i|ii|iidd|iS(sHReturn a list of all slaves of this widget
        in its packing order.tplaceR(RIRzR+RKR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytplace_slavess			cCsdd|if}|dj	o!|dj	o|||f}n|dj	o!|dj	o|||f}n|i|ii|pdS(sReturn a tuple of integer coordinates for the bounding
        box of this widget controlled by the geometry manager grid.

        If COLUMN, ROW is given the bounding box applies from
        the cell with row and column 0 to the specified
        cell. If COL2 and ROW2 are given the bounding box
        starts at that cell.

        The returned integers specify the offset of the upper left
        corner in the master widget and the width and height.
        tgridtbboxN(RoRRR+R1(R3tcolumntrowtcol2trow2Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	grid_bboxsc
Cst|tjoS|oK|ddjo|d }n|d djod|}n|f}n|i||}|p|iid||i|}|ii|}h}xtdt|dD]f}	||	d}
||	d}|p
d	}n*d|jot
|}n
t|}|||
<qW|Sn|iid||i|f|}t|djo8|pd	Snd|jot
|Snt|Snd	S(
sInternal function.iRCiRERiiRJN(RRRR+R1RoRKtrangeRURRYRW(R3RtindexRRjtoptionsRtwordstdicttiR~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_grid_configures@


	

cKs|id|||S(sConfigure column INDEX of a grid.

        Valid resources are minsize (minimum size of the column),
        weight (how much does additional space propagate to this column)
        and pad (how much space to let additionally).tcolumnconfigure(R(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_columnconfigurescCs/|i|iidd|i||pdS(sReturn a tuple of column and row which identify the cell
        at which the pixel at position X and Y inside the master
        widget is located.RtlocationN(RR+R1RoR(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
grid_location$s	cCsV|tijo&|i|iidd|iSn|iidd|i|dS(sSet or get the status for propagation of geometry information.

        A boolean argument specifies whether the geometry information
        of the slaves will determine the size of this widget. If no argument
        is given, the current setting will be returned.
        RRN(R`RRBR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_propagate+scKs|id|||S(sConfigure row INDEX of a grid.

        Valid resources are minsize (minimum size of the row),
        weight (how much does additional space propagate to this row)
        and pad (how much space to let additionally).trowconfigure(R(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_rowconfigure7scCs)|i|iidd|ipdS(s<Return a tuple of the number of column and rows in the grid.RtsizeN(RR+R1RoR(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	grid_size?scCsd}|dj	o|d|f}n|dj	o|d|f}nt|i|ii|iidd|if|S(sHReturn a list of all slaves of this widget
        in its packing order.s-rows-columnRR(N(RRIRzR+RKR1Ro(R3RRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_slavesDs

	cGs'dd|f|}|ii|dS(sBind a virtual event VIRTUAL (of the form <<Name>>)
        to an event SEQUENCE such that the virtual event is triggered
        whenever SEQUENCE occurs.teventRN(R+R1(R3tvirtualt	sequencesRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	event_addSscGs'dd|f|}|ii|dS(s-Unbind a virtual event VIRTUAL from SEQUENCE.RtdeleteN(R+R1(R3RRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytevent_deleteZscKs`dd|i|f}x4|iD]&\}}|d|t|f}q"W|ii|dS(sGenerate an event SEQUENCE. Additional
        keyword arguments specify parameter of the event
        (e.g. x, y, rootx, rooty).Rtgenerates-%sN(RoRRSR+R1(R3R5RjRiRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytevent_generate_s

cCs"|ii|iidd|S(suReturn a list of all virtual events or the information
        about the SEQUENCE bound to the virtual event VIRTUAL.RR((R+RKR1(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
event_infohs	cCs|iiddS(s*Return a list of all existing image names.timagetnames(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytimage_namespscCs|iiddS(s?Return a list of all available image types (e.g. phote bitmap).Rttypes(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytimage_typestsN(s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%D(RRRRRaRbRFReRgRhRkRmtwaitvarRpRrRtRuRVRWtfloatRYR[RwRvRxR{R|R}R~RRRRRRRRRRRRRRRRRRRRRRRRRRtliftRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRR!R#R%R'R)R*R,R
R.R/R8R9R:R<R=R>R?R]R@RRARBRRRMRzR@tregisterRKRVRHR3R2RzR{R|tconfigR}t__getitem__RRR:RRRRRRRRRRRRRRRRRRRRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR`SsH	
	
			
					
										
																
																																													(	
									9										"							RNcBs eZdZdZdZRS(swInternal class. Stores function to call when some user
    defined Tcl function is called e.g. after an event occurred.cCs||_||_||_dS(s(Store FUNC, SUBST and WIDGET as members.N(RRRR`(R3RRRR`((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7|s		cGsfy.|io|i|}n|i|SWn1tj
o}t|n|iinXdS(s3Apply first function SUBST to arguments, than FUNC.N(RRRR"R`Rz(R3RiR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyROs

(RRRR7RO(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRNys	tWmcBseZdZdddddZeZdZeZddZeZ	dZ
e
ZddZeZ
dZeZddZeZdZeZdd	ZeZddddd
ZeZddZeZdddZeZd
ZeZddZeZddZ e Z!dddZ"e"Z#ddZ$e$Z%dddZ&e&Z'dddZ(e(Z)ddZ*e*Z+ddZ,e,Z-dddZ.e.Z/dddZ0e0Z1ddZ2e2Z3ddZ4e4Z5ddZ6e6Z7ddZ8e8Z9dZ:e:Z;RS(sAProvides functions for the communication with the window manager.c	Cs.|i|iidd|i||||S(sInstruct the window manager to set the aspect ratio (width/height)
        of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
        of the actual values if no argument is given.twmtaspect(RR+R1Ro(R3tminNumertminDenomtmaxNumertmaxDenom((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	wm_aspectscGs&dd|if|}|ii|S(sThis subcommand returns or sets platform specific attributes

        The first form returns a list of the platform specific flags and
        their values. The second form returns the value for the specific
        option. The third form sets one or more of the values. The values
        are as follows:

        On Windows, -disabled gets or sets whether the window is in a
        disabled state. -toolwindow gets or sets the style of the window
        to toolwindow (as defined in the MSDN). -topmost gets or sets
        whether this is a topmost window (displays above all other
        windows).

        On Macintosh, XXXXX

        On Unix, there are currently no special attribute values.
        Rt
attributes(RoR+R1(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_attributesscCs|iidd|i|S(sVStore NAME in WM_CLIENT_MACHINE property of this widget. Return
        current value.Rtclient(R+R1Ro(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	wm_clientscGsRt|djo
|f}ndd|if|}t|i|ii|S(sStore list of window names (WLIST) into WM_COLORMAPWINDOWS property
        of this widget. This list contains windows whose colormaps differ from their
        parents. Return current list of widgets if WLIST is empty.iRtcolormapwindows(RURoRIRzR+R1(R3twlistRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_colormapwindowss
cCs|iidd|i|S(sStore VALUE in WM_COMMAND property. It is the command
        which shall be used to invoke the application. Return current
        command if VALUE is None.RR(R+R1Ro(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_commandscCs|iidd|iS(sDeiconify this widget. If it was never mapped it will not be mapped.
        On Windows it will raise this widget and give it the focus.Rt	deiconify(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_deiconifyscCs|iidd|i|S(sSet focus model to MODEL. "active" means that this widget will claim
        the focus itself, "passive" means that the window manager shall give
        the focus. Return current focus model if MODEL is None.Rt
focusmodel(R+R1Ro(R3tmodel((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_focusmodelscCs|iidd|iS(sAReturn identifier for decorative frame of this widget if present.Rtframe(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_framescCs|iidd|i|S(siSet geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
        current value if None is given.RR(R+R1Ro(R3tnewGeometry((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_geometrysc	Cs.|i|iidd|i||||S(sInstruct the window manager that this widget shall only be
        resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
        height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
        number of grid units requested in Tk_GeometryRequest.RR(RR+R1Ro(R3t	baseWidtht
baseHeighttwidthInct	heightInc((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_gridscCs|iidd|i|S(s~Set the group leader widgets for related widgets to PATHNAME. Return
        the group leader of this widget if None is given.Rtgroup(R+R1Ro(R3tpathName((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_groupscCsJ|o#|iidd|id|Sn|iidd|i|SdS(sSet bitmap for the iconified widget to BITMAP. Return
        the bitmap if None is given.

        Under Windows, the DEFAULT parameter can be used to set the icon
        for the widget and any descendents that don't have an icon set
        explicitly.  DEFAULT can be the relative path to a .ico file
        (example: root.iconbitmap(default='myicon.ico') ).  See Tk
        documentation for more information.Rt
iconbitmaps-defaultN(R+R1Ro(R3tbitmaptdefault((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_iconbitmaps	#cCs|iidd|iS(sDisplay widget as icon.Rticonify(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_iconifyscCs|iidd|i|S(sVSet mask for the icon bitmap of this widget. Return the
        mask if None is given.Rticonmask(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_iconmaskscCs|iidd|i|S(sSSet the name of the icon for this widget. Return the name if
        None is given.Rticonname(R+R1Ro(R3tnewName((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_iconnamescCs(|i|iidd|i||S(sSet the position of the icon of this widget to X and Y. Return
        a tuple of the current values of X and X if None is given.Rticonposition(RR+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_iconpositionscCs|iidd|i|S(sgSet widget PATHNAME to be displayed instead of icon. Return the current
        value if None is given.Rt
iconwindow(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_iconwindowscCs(|i|iidd|i||S(sSet max WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.Rtmaxsize(RR+R1Ro(R3R(R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_maxsizescCs(|i|iidd|i||S(sSet min WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.Rtminsize(RR+R1Ro(R3R(R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
wm_minsizescCs%|i|iidd|i|S(sInstruct the window manager to ignore this widget
        if BOOLEAN is given with 1. Return the current value if None
        is given.Rtoverrideredirect(RBR+R1Ro(R3Rf((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_overrideredirectscCs|iidd|i|S(sInstruct the window manager that the position of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".Rtpositionfrom(R+R1Ro(R3twho((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_positionfrom&scCsEt|o|i|}n|}|iidd|i||S(sBind function FUNC to command NAME for this widget.
        Return the function bound to NAME if None is given. NAME could be
        e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".Rtprotocol(RFR@R+R1Ro(R3R6RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_protocol,s

	cCs|iidd|i||S(syInstruct the window manager whether this width can be resized
        in WIDTH or HEIGHT. Both values are boolean values.Rt	resizable(R+R1Ro(R3R(R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_resizable7scCs|iidd|i|S(sInstruct the window manager that the size of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".Rtsizefrom(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_sizefrom<scCs|iidd|i|S(sQuery or set the state of this widget as one of normal, icon,
        iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).RRZ(R+R1Ro(R3tnewstate((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_stateBscCs|iidd|i|S(sSet the title of this widget.Rttitle(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_titleGscCs|iidd|i|S(s_Instruct the window manager that this widget is transient
        with regard to widget MASTER.Rt	transient(R+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_transientKscCs|iidd|iS(sWithdraw this widget from the screen such that it is unmapped
        and forgotten by the window manager. Re-draw it with wm_deiconify.Rtwithdraw(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwm_withdrawPsN(<RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRZRRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRsv				
	
	tTkcBseeZdZdZdddddddZdZdZdZd	Z	d
Z
dZRS(
syToplevel widget of Tk which represents mostly the main window
    of an appliation. It has an associated Tcl interpreter.RJRiicCsd|_h|_d|_d|_|djohddk}ddk}|ii|i	d}|ii
|\}}	|	djo||	}qnd}
ti||||
t
||||_|o|in|i||dS(s@Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
        be created. BASENAME will be used for the identification of the profile file (see
        readprofile).
        It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
        is the name of the widget class.iiNs.pys.pycs.pyo(s.pys.pycs.pyo(RR4Rt	_tkloadedR+Rqtostpathtbasenametargvtsplitextt_tkintertcreatetwantobjectst_loadtktreadprofile(R3t
screenNametbaseNameRtuseTktsynctuseRqRtexttinteractive((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7[s				

'cCs)|ip|ii|indS(N(RR+tloadtkR(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRss

cCssd|_to.ttdotidd|in|iid}|tijot	dti|fnt
|iid}|tijot	dti|fntdjot	d	t
tn|i
djo
g|_
n|iid
t|iidt|i
id
|i
idtoto
|an|id|idS(
NitSchedParamsit
tk_versions4tk.h version (%s) doesn't match libtk.a version (%s)ttcl_versions6tcl.h version (%s) doesn't match libtcl.a version (%s)g@s)Tk 4.0 or higher is required; found Tk %sttkerrortexittWM_DELETE_WINDOW(Rt_MacOSthasattrRR
R+RuRt
TK_VERSIONtRuntimeErrorRStTCL_VERSIONt	TkVersionRaRRQR R$RRRRRb(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRws6	


cCsix!|iiD]}|iqW|iid|iti|tot|jo
dandS(shDestroy this and all descendants widgets. This will
        end the application of this Tcl interpreter.RbN(
RtvaluesRbR+R1RoR`RRR(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRbs
c
BsTddk}|iido|id}n
|i}|ii|d|}|ii|d|}|ii|d|}|ii|d|}h|d<}	d|	U|ii|o|iid|n|ii|oe	||	n|ii|o|iid|n|ii|oe	||	ndS(	sInternal function. It reads BASENAME.tcl and CLASSNAME.tcl into
        the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if
        such a file exists in the home directory.iNtHOMEs.%s.tcls.%s.pyR3sfrom Tkinter import *tsource(
RtenvironRtcurdirRRHtisfileR+R1texecfile(
R3RRRthomet	class_tcltclass_pytbase_tcltbase_pytdir((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s$	cCsZddk}ddk}|iid||_||_||_|i|||dS(s6Internal function. It reports exception on sys.stderr.iNsException in Tkinter callback
(t	tracebackRqtstderrtwritet	last_typet
last_valuetlast_tracebacktprint_exception(R3RvRwRxR+Rq((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRus			cCst|i|S(s3Delegate attribute access to the interpreter object(tgetattrR+(R3tattr((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt__getattr__sN(RRRRoRR7RRRbR	RuR4(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRWs			%				cCst||||S(N(R(R
RRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytTclstPackcBs`eZdZhdZeZZZdZeZdZ	e	Z
eiZ
ZeiZZRS(sQGeometry manager Pack.

    Base class to use the methods pack_* in every widget.cKs0|iidd|if|i||dS(s(Pack a widget in the parent widget. Use as options:
        after=widget - pack it after you have packed widget
        anchor=NSEW (or subset) - position widget according to
                                  given direction
        before=widget - pack it before you will pack widget
        expand=bool - expand widget if parent size grows
        fill=NONE or X or Y or BOTH - fill widget if widget grows
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.
        RR|N(R+R1RoR(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytpack_configures	cCs|iidd|idS(s:Unmap this widget and do not use it for the packing order.RtforgetN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytpack_forgetscCs|ii|iidd|i}h}xjtdt|dD]P}||d}||d}|d djo|i|}n|||<qFW|S(sEReturn information about the packing options
        for this widget.RR(iiiRJ(R+RKR1RoRRURz(R3RRRR~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	pack_infos	(RRRR7RR|RR9R8R:R(R`RRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR6s		

tPlacecBsSeZdZhdZeZZZdZeZdZ	e	Z
eiZ
ZRS(sSGeometry manager Place.

    Base class to use the methods place_* in every widget.cKs0|iidd|if|i||dS(s Place a widget in the parent widget. Use as options:
        in=master - master relative to which the widget is placed
        in_=master - see 'in' option description
        x=amount - locate anchor of this widget at position x of master
        y=amount - locate anchor of this widget at position y of master
        relx=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to width of master (1.0 is right edge)
        rely=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to height of master (1.0 is bottom edge)
        anchor=NSEW (or subset) - position anchor according to given direction
        width=amount - width of this widget in pixel
        height=amount - height of this widget in pixel
        relwidth=amount - width of this widget between 0.0 and 1.0
                          relative to width of master (1.0 is the same width
                          as the master)
        relheight=amount - height of this widget between 0.0 and 1.0
                           relative to height of master (1.0 is the same
                           height as the master)
        bordermode="inside" or "outside" - whether to take border width of
                                           master widget into account
        RR|N(R+R1RoR(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytplace_configure	s	cCs|iidd|idS(sUnmap this widget.RR8N(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytplace_forget#scCs|ii|iidd|i}h}xjtdt|dD]P}||d}||d}|d djo|i|}n|||<qFW|S(sEReturn information about the placing options
        for this widget.RR(iiiRJ(R+RKR1RoRRURz(R3RRRR~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
place_info's	(RRRR<RR|RR=R8R>R(R`RR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR;s		
tGridcBseZdZhdZeZZZeiZ	Zei
ZZ
dZeZ
dZdZeZeiZZeiZZeiZZeiZZeiZZRS(sQGeometry manager Grid.

    Base class to use the methods grid_* in every widget.cKs0|iidd|if|i||dS(sPosition a widget in the parent widget in a grid. Use as options:
        column=number - use cell identified with given column (starting with 0)
        columnspan=number - this widget will span several columns
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        row=number - use cell identified with given row (starting with 0)
        rowspan=number - this widget will span several rows
        sticky=NSEW - if cell is larger on which sides will this
                      widget stick to the cell boundary
        RR|N(R+R1RoR(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_configure<s	cCs|iidd|idS(sUnmap this widget.RR8N(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_forgetQscCs|iidd|idS(s0Unmap this widget but remember the grid options.RRcN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytgrid_removeUscCs|ii|iidd|i}h}xjtdt|dD]P}||d}||d}|d djo|i|}n|||<qFW|S(sSReturn information about the options
        for positioning this widget in a grid.RR(iiiRJ(R+RKR1RoRRURz(R3RRRR~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	grid_infoXs	(RRRR@RR|RR`RRRRRAR8RBRCR(RRRRRRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR?7s

			




t
BaseWidgetcBs>eZdZdZhhddZdZddZRS(sInternal class.cCsto)|ptp
tant}q0n||_|i|_d}|ido|d}|d=n|ptt|}n||_	|i
djod||_
n|i
d||_
h|_|iii|i	o|ii|i	in||ii|i	<dS(s6Internal function. Sets up information about children.R6RJN(
RRRR4R+RRR.RR-RoRRb(R3R4RR6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_setupns*
	
		c	Cs|ot||f}n||_ti||||idjo
g|_ng}xI|iD];}t|tjo"|i	|||f||=qiqiW|i
i||if||i
|x$|D]\}}|i||qWdS(sdConstruct a widget with the parent widget MASTER, a name WIDGETNAME
        and appropriate options.N(Rt
widgetNameRDRERaRRRt	ClassTypeRR+R1RoRR|(	R3R4RFRRjtextratclassesRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s"	

	!cCsxx!|iiD]}|iqW|iid|i|iii|io|ii|i=nt	i|dS(s)Destroy this and all descendants widgets.RbN(
RRRbR+R1RoR4RR-R`(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRbscCs|ii|i|f|S(N(R+R1Ro(R3R6Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_dos(((RRRRER7RbRJ(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRDls
		tWidgetcBseZdZRS(sxInternal class.

    Base class for a widget which can be positioned with the geometry managers
    Pack, Place or Grid.(RRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRKstToplevelcBseZdZdhdZRS(s"Toplevel widget, e.g. for dialogs.c		Ks
|ot||f}nd}xdddddgD]h}|i|oR||}|ddjod|d }nd|}|||f}||=q9q9Wti||d	|h||i}|i|i|i|i|id
|idS(
s%Construct a toplevel widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, class,
        colormap, container, cursor, height, highlightbackground,
        highlightcolor, highlightthickness, menu, relief, screen, takefocus,
        use, visual, width.Rtclass_RRtcolormapiRCRERRN((	RRRDR7RKRRRRb(	R3R4RRjRHtwmkeyRwtoptRy((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s$

N(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRLstButtoncBs\eZdZd	hdZdZdZdZdZdZ	dZ
dZRS(
sButton widget.cKsti||d||dS(sUConstruct a button widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, activeforeground, anchor,
            background, bitmap, borderwidth, cursor,
            disabledforeground, font, foreground
            highlightbackground, highlightcolor,
            highlightthickness, image, justify,
            padx, pady, relief, repeatdelay,
            repeatinterval, takefocus, text,
            textvariable, underline, wraplength

        WIDGET-SPECIFIC OPTIONS

            command, compound, default, height,
            overrelief, state, width
        tbuttonN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7scGs|iid|idS(Nt
tkButtonEnter(R+R1Ro(R3tdummy((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRSscGs|iid|idS(Nt
tkButtonLeave(R+R1Ro(R3RT((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRUscGs|iid|idS(NttkButtonDown(R+R1Ro(R3RT((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRVscGs|iid|idS(Nt
tkButtonUp(R+R1Ro(R3RT((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRWscGs|iid|idS(NttkButtonInvoke(R+R1Ro(R3RT((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRXscCs|ii|iddS(s_Flash the button.

        This is accomplished by redisplaying
        the button several times, alternating between active and
        normal colors. At the end of the flash the button is left
        in the same normal/active state as when the command was
        invoked. This command is ignored if the button's state is
        disabled.
        tflashN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRYs
cCs|ii|idS(sInvoke the command associated with the button.

        The return value is the return value from the command,
        or an empty string if there is no command associated with
        the button. This command is ignored if the button's state
        is disabled.
        tinvoke(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZsN(RRRRR7RSRURVRWRXRYRZ(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRQs						cCsdS(Ntend((((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytAtEndscGs4d}x'|D]}|o|d|}q
q
W|S(NtinsertRD((RiR_ta((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytAtInsertscCsdS(Ns	sel.first((((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
AtSelFirstscCsdS(Nssel.last((((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	AtSelLastscCs.|djod|fSnd||fSdS(Ns@%rs@%r,%r(R(RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytAts
tCanvascBseZdZd@hdZdZdZdZdZd@d@dZ	dZ
dZd	Zd
Z
d@dZd@d@d@dZd@d
Zd@dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"d Z#d@d@d!Z$d"Z%d#Z&d$Z'd%Z(d&Z)d'Z*d(Z+d)Z,d*Z-d@d+Z.e.Z/d,Z0e0Z1d-Z2hd.Z3d/Z4e4Z5Z6d0Z7d1Z8d2d3Z9d4Z:d5Z;d6Z<d7Z=d8Z>d9Z?d:Z@d;ZAd<ZBd=ZCd>ZDd?ZERS(As?Canvas widget to display graphical elements like lines or text.cKsti||d||dS(sConstruct a canvas widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, closeenough,
        confine, cursor, height, highlightbackground, highlightcolor,
        highlightthickness, insertbackground, insertborderwidth,
        insertofftime, insertontime, insertwidth, offset, relief,
        scrollregion, selectbackground, selectborderwidth, selectforeground,
        state, takefocus, width, xscrollcommand, xscrollincrement,
        yscrollcommand, yscrollincrement.tcanvasN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s
cGs!|ii|idf|dS(sInternal function.taddtagN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRe#scCs|i|d|dS(s*Add tag NEWTAG to all items above TAGORID.taboveN(Re(R3tnewtagttagOrId((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_above&scCs|i|ddS(sAdd tag NEWTAG to all items.R;N(Re(R3Rg((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
addtag_all)scCs|i|d|dS(s*Add tag NEWTAG to all items below TAGORID.tbelowN(Re(R3RgRh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_below,scCs |i|d||||dS(sAdd tag NEWTAG to item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closests). If START is specified the next below this tag is taken.tclosestN(Re(R3RgRR+thalotstart((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_closest/scCs |i|d||||dS(sLAdd tag NEWTAG to all items in the rectangle defined
        by X1,Y1,X2,Y2.tenclosedN(Re(R3Rgtx1ty1tx2ty2((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_enclosed5scCs |i|d||||dS(sWAdd tag NEWTAG to all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.toverlappingN(Re(R3RgRrRsRtRu((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_overlapping9scCs|i|d|dS(s)Add tag NEWTAG to all items with TAGORID.twithtagN(Re(R3RgRh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytaddtag_withtag=scGs-|i|ii|idf|pdS(s|Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses all items with tags specified as arguments.RN(RR+R1RoR(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR@scCs;|ii|id||d|o|i|ndS(sbUnbind for all items with TAGORID for event SEQUENCE  the
        function identified with FUNCID.R9R&N(R+R1RoRF(R3RhR5R7((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_unbindEscCs"|i|id|f|||S(s&Bind to all items with TAGORID at event SEQUENCE a call to function FUNC.

        An additional boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or whether it will
        replace the previous function. See bind for the return value.R9(R8Ro(R3RhR5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttag_bindKscCs"t|ii|id||S(srReturn the canvas x coordinate of pixel position SCREENX rounded
        to nearest multiple of GRIDSPACING units.tcanvasx(RYR+R1Ro(R3tscreenxtgridspacing((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR}SscCs"t|ii|id||S(srReturn the canvas y coordinate of pixel position SCREENY rounded
        to nearest multiple of GRIDSPACING units.tcanvasy(RYR+R1Ro(R3tscreenyR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRXscGs2tt|ii|ii|idf|S(s8Return a list of coordinates for the item given in ARGS.tcoords(RIRYR+RKR1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]s	c
Csut|}|d}t|ttfjo|d }nh}t|ii|id|||i||S(sInternal function.iR(	RRR
RRWR+R1RoR(R3titemTypeRiRjR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_createcs
cOs|id||S(s6Create arc shaped region with coordinates x1,y1,x2,y2.tarc(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
create_arcnscOs|id||S(s%Create bitmap with coordinates x1,y1.R(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
create_bitmapqscOs|id||S(s)Create image item with coordinates x1,y1.R(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_imagetscOs|id||S(s-Create line with coordinates x1,y1,...,xn,yn.tline(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_linewscOs|id||S(s)Create oval with coordinates x1,y1,x2,y2.toval(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_ovalzscOs|id||S(s0Create polygon with coordinates x1,y1,...,xn,yn.tpolygon(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_polygon}scOs|id||S(s.Create rectangle with coordinates x1,y1,x2,y2.t	rectangle(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_rectanglescOs|id||S(s#Create text with coordinates x1,y1.ttext(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytcreate_textscOs|id||S(s+Create window with coordinates x1,y1,x2,y2.Rn(R(R3RiRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
create_windowscGs!|ii|idf|dS(sDelete characters of text items identified by tag or id in ARGS (possibly
        several times) from FIRST to LAST character (including).tdcharsN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs!|ii|idf|dS(s<Delete items identified by all tag or ids contained in ARGS.RN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs!|ii|idf|dS(siDelete tag or id given as last arguments in ARGS from items
        identified by first argument in ARGS.tdtagN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs-|i|ii|idf|pdS(sInternal function.tfind((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|id|S(sReturn items above TAGORID.Rf(R(R3Rh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
find_abovescCs
|idS(sReturn all items.R;(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfind_allscCs|id|S(sReturn all items below TAGORID.Rk(R(R3Rh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
find_belowscCs|id||||S(sReturn item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closests). If START is specified the next below this tag is taken.Rm(R(R3RR+RnRo((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfind_closestscCs|id||||S(s=Return all items in rectangle defined
        by X1,Y1,X2,Y2.Rq(R(R3RrRsRtRu((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
find_enclosedscCs|id||||S(sLReturn all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.Rw(R(R3RrRsRtRu((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfind_overlappingscCs|id|S(sReturn all items with TAGORID.Ry(R(R3Rh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytfind_withtagscGs|ii|idf|S(s.Set focus to the first item specified in ARGS.Rv(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRvscGs)|ii|ii|idf|S(s=Return tags associated with the first item specified in ARGS.tgettags(R+RKR1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs	cGs!|ii|idf|dS(sdSet cursor at position POS in the item identified by TAGORID.
        In ARGS TAGORID must be first.ticursorN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs#t|ii|idf|S(s?Return position of cursor as integer in item specified in ARGS.R(RWR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs!|ii|idf|dS(sSInsert TEXT in item TAGORID at position POS. ARGS must
        be TAGORID POS TEXT.R]N(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]scCs'|ii|idf|d|fS(s9Return the resource value for an OPTION for item TAGORID.titemcgetRE(R+R1Ro(R3RhR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs	cKs|id|f||S(sConfigure resources of an item TAGORID.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method without arguments.
        t
itemconfigure(R{(R3RhRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs!|ii|idf|dS(sJLower an item TAGORID given in ARGS
        (optional below another item).RN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	tag_lowerscGs!|ii|idf|dS(s#Move an item TAGORID given in ARGS.tmoveN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscKs)|ii|idf|i||S(sPrint the contents of the canvas to a postscript
        file. Valid options: colormap, colormode, file, fontmap,
        height, pageanchor, pageheight, pagewidth, pagex, pagey,
        rotate, witdh, x, y.t
postscript(R+R1RoR(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs!|ii|idf|dS(sJRaise an item TAGORID given in ARGS
        (optional above another item).RN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	tag_raisescGs!|ii|idf|dS(s9Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.tscaleN(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs#|ii|idd||dS(s&Remember the current X, Y coordinates.tscantmarkN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	scan_marksi
cCs&|ii|idd|||dS(sAdjust the view of the canvas to GAIN times the
        difference between X and Y and the coordinates given in
        scan_mark.RtdragtoN(R+R1Ro(R3RR+tgain((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytscan_dragtoscCs#|ii|idd||dS(sLAdjust the end of the selection near the cursor of an item TAGORID to index.tselecttadjustN(R+R1Ro(R3RhR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
select_adjustscCs|ii|idddS(s,Clear the selection if it is in this widget.RRN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselect_clearscCs#|ii|idd||dS(s:Set the fixed end of a selection in item TAGORID to INDEX.RtfromN(R+R1Ro(R3RhR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselect_fromscCs |ii|iddpdS(s(Return the item which has the selection.RR	N(R+R1RoR(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselect_itemscCs#|ii|idd||dS(s=Set the variable end of a selection in item TAGORID to INDEX.RttoN(R+R1Ro(R3RhR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	select_to	scCs |ii|id|pdS(s$Return the type of the item TAGORID.RN(R+R1RoR(R3Rh((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scGsK|p#|i|ii|idSn|ii|idf|dS(s1Query and change horizontal position of the view.txviewN(RAR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s#cCs |ii|idd|dS(ssAdjusts the view in the window so that FRACTION of the
        total width of the canvas is off-screen to the left.RtmovetoN(R+R1Ro(R3tfraction((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytxview_moveto	scCs#|ii|idd||dS(sTShift the x-view according to NUMBER which is measured in "units" or "pages" (WHAT).RtscrollN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytxview_scroll	scGsK|p#|i|ii|idSn|ii|idf|dS(s/Query and change vertical position of the view.tyviewN(RAR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s#cCs |ii|idd|dS(ssAdjusts the view in the window so that FRACTION of the
        total height of the canvas is off-screen to the top.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytyview_moveto	scCs#|ii|idd||dS(sTShift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytyview_scroll	sN(FRRRRR7ReRiRjRlRpRvRxRzRR{R|R}RRRRRRRRRRRRRRRRRRRRRRRRvRRRR]RRt
itemconfigRRRRRRRRRRRRRRRRRRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRcs																																						
													tCheckbuttoncBsJeZdZdhdZdZdZdZdZdZ	RS(s7Checkbutton widget which is either in on- or off-state.cKsti||d||dS(sConstruct a checkbutton widget with the parent MASTER.

        Valid resource names: activebackground, activeforeground, anchor,
        background, bd, bg, bitmap, borderwidth, command, cursor,
        disabledforeground, fg, font, foreground, height,
        highlightbackground, highlightcolor, highlightthickness, image,
        indicatoron, justify, offvalue, onvalue, padx, pady, relief,
        selectcolor, selectimage, state, takefocus, text, textvariable,
        underline, variable, width, wraplength.tcheckbuttonN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7!	s
cCs|ii|iddS(sPut the button in off-state.tdeselectN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR,	scCs|ii|iddS(sFlash the button.RYN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRY/	scCs|ii|idS(s<Toggle the button and invoke a command if given as resource.RZ(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZ2	scCs|ii|iddS(sPut the button in on-state.RN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR5	scCs|ii|iddS(sToggle the button.ttoggleN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR8	sN(
RRRRR7RRYRZRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s				tEntrycBseZdZdhdZddZdZdZdZdZ	dZ
dZd	ZeZ
d
ZeZdZeZdZeZd
ZeZdZeZdZdZdZRS(s1Entry widget which allows to display simple text.cKsti||d||dS(sConstruct an entry widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, cursor,
        exportselection, fg, font, foreground, highlightbackground,
        highlightcolor, highlightthickness, insertbackground,
        insertborderwidth, insertofftime, insertontime, insertwidth,
        invalidcommand, invcmd, justify, relief, selectbackground,
        selectborderwidth, selectforeground, show, state, takefocus,
        textvariable, validate, validatecommand, vcmd, width,
        xscrollcommand.tentryN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7>	scCs |ii|id||dS(s.Delete text from FIRST to LAST (not included).RN(R+R1Ro(R3tfirsttlast((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRJ	scCs|ii|idS(sReturn the text.R=(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=M	scCs|ii|id|dS(sInsert cursor at INDEX.RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRP	scCst|ii|id|S(sReturn position of cursor.R(RWR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRS	scCs |ii|id||dS(sInsert STRING at INDEX.R]N(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]W	scCs |ii|idd|dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZ	scCs |ii|idd|dS(sAdjust the view of the canvas to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]	scCs |ii|idd|dS(s9Adjust the end of the selection near the cursor to INDEX.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_adjustb	scCs|ii|idddS(s,Clear the selection if it is in this widget.RRN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRf	scCs |ii|idd|dS(s*Set the fixed end of a selection to INDEX.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_fromj	scCs%|ii|ii|iddS(s,Return whether the widget has the selection.Rtpresent(R+R[R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_presentn	s	cCs#|ii|idd||dS(s3Set the selection from START to END (not included).RRN(R+R1Ro(R3RoR[((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_ranges	scCs |ii|idd|dS(s-Set the variable end of a selection to INDEX.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_tow	scCs|ii|id|dS(s1Query and change horizontal position of the view.RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR{	scCs |ii|idd|dS(sqAdjust the view in the window so that FRACTION of the
        total width of the entry is off-screen to the left.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR~	scCs#|ii|idd||dS(sTShift the x-view according to NUMBER which is measured in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	sN(RRRRR7RR=RRR]RRRRRRRRRtselect_presentRtselect_rangeRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR<	s0														tFramecBseZdZdhdZRS(sFFrame widget which may contain other widgets and can have a 3D border.cKst||f}d}|idod|df}|d=n,|idod|df}|d=nti||d|h|dS(sConstruct a frame widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, class,
        colormap, container, cursor, height, highlightbackground,
        highlightcolor, highlightthickness, relief, takefocus, visual, width.RMs-classRRN((RRRKR7(R3R4RRjRH((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7	sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	stLabelcBseZdZdhdZRS(s0Label widget which can display text and bitmaps.cKsti||d||dS(sConstruct a label widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, activeforeground, anchor,
            background, bitmap, borderwidth, cursor,
            disabledforeground, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, image, justify,
            padx, pady, relief, takefocus, text,
            textvariable, underline, wraplength

        WIDGET-SPECIFIC OPTIONS

            height, state, width

        tlabelN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7	sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	stListboxcBs"eZdZdhdZdZdZdZddZddZ	dZ
dZd	Zd
Z
dZdZd
ZeZddZeZdZeZddZeZdZdZdZdZdZdZdZdZddZ e Z!RS(s3Listbox widget which can display a list of strings.cKsti||d||dS(sConstruct a listbox widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, cursor,
        exportselection, fg, font, foreground, height, highlightbackground,
        highlightcolor, highlightthickness, relief, selectbackground,
        selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
        width, xscrollcommand, yscrollcommand, listvariable.tlistboxN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7	scCs|ii|id|dS(s"Activate item identified by INDEX.tactivateN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scGs-|i|ii|idf|pdS(svReturn a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses the item identified by index in ARGS.RN(RR+R1RoR(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs"|ii|ii|idS(s2Return list of indices of currently selected item.tcurselection(R+RKR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs |ii|id||dS(s/Delete items from FIRST to LAST (not included).RN(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCsP|o,|ii|ii|id||Sn|ii|id|SdS(s4Get list of items from FIRST to LAST (not included).R=N(R+RKR1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=	scCs:|ii|id|}|djodSnt|S(s+Return index of item identified with INDEX.RRyN(R+R1RoRRW(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s
cGs$|ii|id|f|dS(sInsert ELEMENTS at INDEX.R]N(R+R1Ro(R3Rtelements((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]	scCst|ii|id|S(s5Get index of item which is nearest to y coordinate Y.tnearest(RWR+R1Ro(R3R+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs#|ii|idd||dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs#|ii|idd||dS(sAdjust the view of the listbox to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RRN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs|ii|id|dS(s"Scroll such that INDEX is visible.tseeN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs |ii|idd|dS(s-Set the fixed end oft the selection to INDEX.RtanchorN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_anchor	scCs#|ii|idd||dS(s6Clear the selection from FIRST to LAST (not included).RRN(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scCs(|ii|ii|idd|S(s+Return 1 if INDEX is part of the selection.Rtincludes(R+R[R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_includes	scCs#|ii|idd||dS(smSet the selection from FIRST to LAST (not included) without
        changing the currently selected elements.RR0N(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
selection_set	scCst|ii|idS(s-Return the number of elements in the listbox.R(RWR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	scGsK|p#|i|ii|idSn|ii|idf|dS(s1Query and change horizontal position of the view.RN(RAR+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s#cCs |ii|idd|dS(sqAdjust the view in the window so that FRACTION of the
        total width of the entry is off-screen to the left.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs#|ii|idd||dS(sTShift the x-view according to NUMBER which is measured in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scGsK|p#|i|ii|idSn|ii|idf|dS(s/Query and change vertical position of the view.RN(RAR+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	
s#cCs |ii|idd|dS(spAdjust the view in the window so that FRACTION of the
        total width of the entry is off-screen to the top.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs#|ii|idd||dS(sTShift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs'|ii|idf|d|fS(s4Return the resource value for an ITEM and an OPTION.RRE(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s	cKs|id|f||S(s9Configure resources of an ITEM.

        The values for resources are specified as keyword arguments.
        To get an overview about the allowed keyword arguments
        call the method without arguments.
        Valid resource names: background, bg, foreground, fg,
        selectbackground, selectforeground.R(R{(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
sN("RRRRR7RRRRR=RR]RRRRRt
select_anchorRRRtselect_includesRt
select_setRRRRRRRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR	s>																					tMenucBseZdZd%hdZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
dZdZhdZhdZhdZhdZhdZhdZhdZhdZhdZhdZhdZhdZd%dZdZd%dZ e Z!dZ"d Z#d!Z$d"Z%d#Z&d$Z'RS(&sPMenu widget which allows to display menu bars, pull-down menus and pop-up menus.cKsti||d||dS(sAConstruct menu widget with the parent MASTER.

        Valid resource names: activebackground, activeborderwidth,
        activeforeground, background, bd, bg, borderwidth, cursor,
        disabledforeground, fg, font, foreground, postcommand, relief,
        selectcolor, takefocus, tearoff, tearoffcommand, title, type.tmenuN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7&
scCsdS(N((R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttk_bindForTraversal.
scCs|iid|idS(Nt	tk_mbPost(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0
scCs|iiddS(Nttk_mbUnpost(R+R1(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR2
scCs|iid|i|dS(Nttk_traverseToMenu(R+R1Ro(R3R\((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR4
scCs|iid|i|dS(Nttk_traverseWithinMenu(R+R1Ro(R3R\((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR6
scCs|iid|iS(Nttk_getMenuButtons(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR8
scCs|iid|dS(Nttk_nextMenu(R+R1(R3tcount((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR:
scCs|iid|dS(Nttk_nextMenuEntry(R+R1(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR<
scCs|iid|idS(Nt
tk_invokeMenu(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR>
scCs|iid|idS(Nttk_firstMenu(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR@
scCs|iid|idS(Nttk_mbButtonDown(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRB
sR&cCs#|iid|i|||dS(s/Post the menu at position X,Y with entry ENTRY.ttk_popupN(R+R1Ro(R3RR+R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRD
scCs|ii|id|dS(sActivate entry at INDEX.RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRG
scKs0|ii|id|f|i||dS(sInternal function.RN(R+R1RoR(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRJ
scKs|id|p|dS(sAdd hierarchical menu item.tcascadeN(R(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytadd_cascadeN
scKs|id|p|dS(sAdd checkbutton menu item.RN(R(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytadd_checkbuttonQ
scKs|id|p|dS(sAdd command menu item.RN(R(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytadd_commandT
scKs|id|p|dS(sAddd radio menu item.tradiobuttonN(R(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytadd_radiobuttonW
scKs|id|p|dS(sAdd separator.t	separatorN(R(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
add_separatorZ
scKs3|ii|id||f|i||dS(sInternal function.R]N(R+R1RoR(R3RRRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]]
scKs|i|d|p|dS(s$Add hierarchical menu item at INDEX.RN(R](R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytinsert_cascadea
scKs|i|d|p|dS(s#Add checkbutton menu item at INDEX.RN(R](R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytinsert_checkbuttond
scKs|i|d|p|dS(sAdd command menu item at INDEX.RN(R](R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytinsert_commandg
scKs|i|d|p|dS(sAddd radio menu item at INDEX.RN(R](R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytinsert_radiobuttonj
scKs|i|d|p|dS(sAdd separator at INDEX.RN(R](R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytinsert_separatorm
scCs|djo
|}n|i||i|}}|djp
|djod\}}nxet||dD]P}d|i|jo4t|i|d}|o|i|qqtqtW|ii|i	d||dS(s7Delete menu items between INDEX1 and INDEX2 (included).iiiRRN(ii(
RRRtentryconfigRSt	entrycgetRFR+R1Ro(R3tindex1tindex2t
num_index1t
num_index2RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRp
s

cCs |ii|id|d|S(s>Return the resource value of an menu item for OPTION at INDEX.RRE(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scKs|id|f||S(sConfigure a menu item at INDEX.tentryconfigure(R{(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs:|ii|id|}|djodSnt|S(s4Return the index of a menu item identified by INDEX.RRyN(R+R1RoRRW(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s
cCs|ii|id|S(sRInvoke a menu item identified by INDEX and execute
        the associated command.RZ(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZ
scCs |ii|id||dS(sDisplay a menu at position X,Y.tpostN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|id|S(s*Return the type of the menu item at INDEX.R(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|iddS(s
Unmap a menu.tunpostN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCst|ii|id|S(sEReturn the y-position of the topmost pixel of the menu item at INDEX.t	yposition(RWR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
sN((RRRRR7RRRRRRRRRRRRRRRRRRRR]RRRRRRRRRRRZRRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR$
sJ																		t
MenubuttoncBseZdZdhdZRS(s(Menubutton widget, obsolete since Tk8.0.cKsti||d||dS(Nt
menubutton(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
stMessagecBseZdZdhdZRS(sKMessage widget to display multiline text. Obsolete since Label does it too.cKsti||d||dS(Ntmessage(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR

stRadiobuttoncBsAeZdZdhdZdZdZdZdZRS(sGRadiobutton widget which shows only one of several buttons in on-state.cKsti||d||dS(sConstruct a radiobutton widget with the parent MASTER.

        Valid resource names: activebackground, activeforeground, anchor,
        background, bd, bg, bitmap, borderwidth, command, cursor,
        disabledforeground, fg, font, foreground, height,
        highlightbackground, highlightcolor, highlightthickness, image,
        indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
        state, takefocus, text, textvariable, underline, value, variable,
        width, wraplength.RN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
s
cCs|ii|iddS(sPut the button in off-state.RN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|iddS(sFlash the button.RYN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRY
scCs|ii|idS(s<Toggle the button and invoke a command if given as resource.RZ(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZ
scCs|ii|iddS(sPut the button in on-state.RN(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
sN(	RRRRR7RRYRZR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s			tScalecBsDeZdZdhdZdZdZddZdZRS(s1Scale widget which can display a numerical scale.cKsti||d||dS(sConstruct a scale widget with the parent MASTER.

        Valid resource names: activebackground, background, bigincrement, bd,
        bg, borderwidth, command, cursor, digits, fg, font, foreground, from,
        highlightbackground, highlightcolor, highlightthickness, label,
        length, orient, relief, repeatdelay, repeatinterval, resolution,
        showvalue, sliderlength, sliderrelief, state, takefocus,
        tickinterval, to, troughcolor, variable, width.RN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
s	cCsJ|ii|id}yt|SWntj
ot|SnXdS(s*Get the current value as integer or float.R=N(R+R1RoRWRdRY(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=
s
cCs|ii|id|dS(sSet the value to VALUE.R0N(R+R1Ro(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0
scCs"|i|ii|id|S(sReturn a tuple (X,Y) of the point along the centerline of the
        trough that corresponds to VALUE or the current value if None is
        given.R(RR+R1Ro(R3R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|id||S(scReturn where the point X,Y lies. Valid return values are "slider",
        "though1" and "though2".tidentify(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
sN(	RRRRR7R=R0RR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR

s
		t	ScrollbarcBsSeZdZdhdZdZdZdZdZdZ	dZ
RS(	s?Scrollbar widget which displays a slider at a certain position.cKsti||d||dS(slConstruct a scrollbar widget with the parent MASTER.

        Valid resource names: activebackground, activerelief,
        background, bd, bg, borderwidth, command, cursor,
        elementborderwidth, highlightbackground,
        highlightcolor, highlightthickness, jump, orient,
        relief, repeatdelay, repeatinterval, takefocus,
        troughcolor, width.t	scrollbarN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
s	cCs|ii|id|dS(sxDisplay the element at INDEX with activebackground and activerelief.
        INDEX can be "arrow1","slider" or "arrow2".RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs"t|ii|id||S(snReturn the fractional change of the scrollbar setting if it
        would be moved by DELTAX or DELTAY pixels.Rc(RYR+R1Ro(R3tdeltaxtdeltay((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRc
scCs"t|ii|id||S(sRReturn the fractional value which corresponds to a slider
        position of X,Y.R(RYR+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|id||S(sYReturn the element under position X,Y as one of
        "arrow1","slider","arrow2" or "".R(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|i|ii|idS(sZReturn the current fractional values (upper and lower end)
        of the slider position.R=(RAR+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=scGs!|ii|idf|dS(siSet the fractional values of the slider position (upper and
        lower ends as value between 0 and 1).R0N(R+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0sN(RRRRR7RRcRRR=R0(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s
					tTextcBs{eZdZd;hdZdZdZdZdZdZ	dZ
d;dZd;d	Zd
Z
d;d;dZdZd;d
ZdZdZdZdZd;dZdZd;dZhdZdZdZdZd;dZdZdZdZdZ dZ!dZ"d Z#d;d;d;d;d;d;d;d!Z$d"Z%d#Z&d;d$Z'd;d%Z(d&Z)d;d'Z*e*Z+d(Z,d;d)Z-d;d*Z.d;d+Z/d;d,Z0d;d-Z1d.Z2d;d/Z3d0Z4d;d1Z5e5Z6hd2Z7d3Z8d4Z9d5Z:d6Z;d7Z<d8Z=d9Z>d:Z?RS(<s4Text widget which can display text in various forms.cKsti||d||dS(sConstruct a text widget with the parent MASTER.

        STANDARD OPTIONS

            background, borderwidth, cursor,
            exportselection, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, insertbackground,
            insertborderwidth, insertofftime,
            insertontime, insertwidth, padx, pady,
            relief, selectbackground,
            selectborderwidth, selectforeground,
            setgrid, takefocus,
            xscrollcommand, yscrollcommand,

        WIDGET-SPECIFIC OPTIONS

            autoseparators, height, maxundo,
            spacing1, spacing2, spacing3,
            state, tabs, undo, width, wrap,

        RN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
scGs-|i|ii|idf|pdS(sReturn a tuple of (x,y,width,height) which gives the bounding
        box of the visible part of the character at the index in ARGS.RN(RR+R1RoR(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR%scCs|iid|i|dS(Nttk_textSelectTo(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR*scCs|iid|idS(Nttk_textBackspace(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR,scCs#|iid|i|||dS(Nttk_textIndexCloser(R+R1Ro(R3R^ReR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR.scCs|iid|i|dS(Nttk_textResetAnchor(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR0scCs+|ii|ii|id|||S(sReturn whether between index INDEX1 and index INDEX2 the
        relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.tcompare(R+R[R1Ro(R3RtopR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR2scCs%|ii|ii|id|S(sjTurn on the internal consistency checks of the B-Tree inside the text
        widget according to BOOLEAN.tdebug(R+R[R1Ro(R3Rf((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7scCs |ii|id||dS(s?Delete the characters between INDEX1 and INDEX2 (not included).RN(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR<scCs"|i|ii|id|S(sReturn tuple (x,y,width,height,baseline) giving the bounding box
        and baseline position of the visible part of the line containing
        the character at INDEX.t	dlineinfo(RR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR?sc
	Ksg}d}d}|pg}|d}|}nzt|tp|i|}}n|d|g7}x.|D]&}	||	o|id|	qvqvW|i||o|i|n|ii|id||SWd|o|i|nXdS(sReturn the contents of the widget between index1 and index2.

        The type of contents returned in filtered based on the keyword
        parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are
        given and true, then the corresponding items are returned. The result
        is a list of triples of the form (key, value, index). If none of the
        keywords are true then 'all' is used by default.

        If the 'command' argument is given, it is called once for each element
        of the list of triples, with the values of each triple serving as the
        arguments to the function. In this case the list is not returned.cSs|i|||fdS(N(R(R~R5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
append_tripleYss-commandREtdumpN(	RRQRSR@RR+R1RoRF(
R3RRRRjRit	func_nameRRR~((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRDs,

cGs-|i|ii|idf|pdS(srInternal method

        This method controls the undo mechanism and
        the modified flag. The exact behavior of the
        command depends on the option argument that
        follows the edit argument. The following forms
        of the command are currently supported:

        edit_modified, edit_redo, edit_reset, edit_separator
        and edit_undo

        tedit((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRls
cCs|id|S(s;Get or Set the modified flag

        If arg is not specified, returns the modified
        flag of the widget. The insert, delete, edit undo and
        edit redo commands or the user can set or clear the
        modified flag. If boolean is specified, sets the
        modified flag of the widget to arg.
        tmodified(R(R3targ((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
edit_modified|s	cCs
|idS(sRedo the last undone edit

        When the undo option is true, reapplies the last
        undone edits provided no other edits were done since
        then. Generates an error when the redo stack is empty.
        Does nothing when the undo option is false.
        tredo(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	edit_redoscCs
|idS(s(Clears the undo and redo stacks
        treset(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
edit_resetscCs
|idS(snInserts a separator (boundary) on the undo stack.

        Does nothing when the undo option is false
        R(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytedit_separatorscCs
|idS(sDUndoes the last edit action

        If the undo option is true. An edit action is defined
        as all the insert and delete commands that are recorded
        on the undo stack in between two separators. Generates
        an error when the undo stack is empty. Does nothing
        when the undo option is false
        tundo(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	edit_undos	cCs|ii|id||S(s5Return the text from INDEX1 to INDEX2 (not included).R=(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=sc	Cs]|d djod|}n|ddjo|d }n|ii|idd||S(s9Return the value of OPTION of an embedded image at INDEX.iREiRCRR}(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
image_cgets
cKs|idd|f||S(s%Configure an embedded image at INDEX.RR|(R{(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytimage_configurescKs+|ii|idd||i||S(s"Create an embedded image at INDEX.RR(R+R1RoR(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytimage_creates	cCs|ii|iddS(s3Return all names of embedded images in this widget.RR(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCst|ii|id|S(s1Return the index in the form line.char for INDEX.R(RSR+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs'|ii|id||f|dS(sInsert CHARS before the characters at INDEX. An additional
        tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.R]N(R+R1Ro(R3RtcharsRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]scCs"|ii|idd||fS(sChange the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
        Return the current value if None is given for DIRECTION.Rtgravity(R+R1Ro(R3tmarkNamet	direction((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytmark_gravitys	cCs%|ii|ii|iddS(sReturn all mark names.RR(R+RKR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
mark_namesscCs#|ii|idd||dS(s0Set mark MARKNAME before the character at INDEX.RR0N(R+R1Ro(R3R/R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytmark_setscGs$|ii|iddf|dS(sDelete all marks in MARKNAMES.RtunsetN(R+R1Ro(R3t	markNames((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
mark_unsetscCs#|ii|idd|pdS(s-Return the name of the next mark after INDEX.RtnextN(R+R1RoR(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	mark_nextscCs#|ii|idd|pdS(s2Return the name of the previous mark before INDEX.RtpreviousN(R+R1RoR(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
mark_previousscCs#|ii|idd||dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs#|ii|idd||dS(s~Adjust the view of the text to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RRN(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRsc
Cs|idg}
|o|
idn|o|
idn|o|
idn|o|
idn|o|
idn|	o|
id|
i|	n|dd	jo|
id
n|
i||
i||o|
i|n|iit|
S(sSearch PATTERN beginning from INDEX until STOPINDEX.
        Return the index of the first character of a match or an empty string.tsearchs	-forwardss
-backwardss-exacts-regexps-nocases-countiREs--(RoRR+R1R(R3RRt	stopindextforwardst	backwardstexacttregexptnocaseRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR;s*


cCs|ii|id|dS(s3Scroll such that the character at INDEX is visible.RN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscGs*|ii|idd||f|dS(s|Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
        Additional pairs of indices may follow in ARGS.ttagRN(R+R1Ro(R3ttagNameRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttag_adds	cCs>|ii|idd||d|o|i|ndS(sgUnbind for all characters with TAGNAME for event SEQUENCE  the
        function identified with FUNCID.RBR9R&N(R+R1RoRF(R3RCR5R7((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR{s"cCs%|i|idd|f|||S(s+Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC.

        An additional boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or whether it will
        replace the previous function. See bind for the return value.RBR9(R8Ro(R3RCR5RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR|sc	Cs]|d djod|}n|ddjo|d }n|ii|idd||S(s+Return the value of OPTION for tag TAGNAME.iREiRCRBR}(R+R1Ro(R3RCR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyttag_cget	s
cKs|idd|f||S(sConfigure a tag TAGNAME.RBR|(R{(R3RCRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_configurescGs$|ii|iddf|dS(sDelete all tags in TAGNAMES.RBRN(R+R1Ro(R3ttagNames((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_deletescCs#|ii|idd||dS(s`Change the priority of tag TAGNAME such that it is lower
        than the priority of BELOWTHIS.RBRN(R+R1Ro(R3RCR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs(|ii|ii|idd|S(sReturn a list of all tag names.RBR(R+RKR1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	tag_namess	cCs.|ii|ii|idd|||S(sReturn a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched forward from INDEX1.RBt	nextrange(R+RKR1Ro(R3RCRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_nextrangescCs.|ii|ii|idd|||S(sReturn a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched backwards from INDEX1.RBt	prevrange(R+RKR1Ro(R3RCRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_prevrange%scCs#|ii|idd||dS(saChange the priority of tag TAGNAME such that it is higher
        than the priority of ABOVETHIS.RBRN(R+R1Ro(R3RCR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR+s	cCs(|ii|ii|idd|S(s7Return a list of ranges of text which have tag TAGNAME.RBtranges(R+RKR1Ro(R3RC((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_ranges0scCs&|ii|idd|||dS(sARemove tag TAGNAME from all characters between INDEX1 and INDEX2.RBRcN(R+R1Ro(R3RCRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
tag_remove4s	c	Cs]|d djod|}n|ddjo|d }n|ii|idd||S(s:Return the value of OPTION of an embedded window at INDEX.iREiRCRnR}(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwindow_cget8s
cKs|idd|f||S(s&Configure an embedded window at INDEX.RnR|(R{(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwindow_configure?scKs3|ii|idd|f|i||dS(sCreate a window at INDEX.RnRN(R+R1RoR(R3RRRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
window_createCs	cCs%|ii|ii|iddS(s4Return all names of embedded windows in this widget.RnR(R+RKR1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytwindow_namesHs	cGsK|p#|i|ii|idSn|ii|idf|dS(s1Query and change horizontal position of the view.RN(RAR+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRLs#cCs |ii|idd|dS(ssAdjusts the view in the window so that FRACTION of the
        total width of the canvas is off-screen to the left.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRQscCs#|ii|idd||dS(s\Shift the x-view according to NUMBER which is measured
        in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRUscGsK|p#|i|ii|idSn|ii|idf|dS(s/Query and change vertical position of the view.RN(RAR+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRYs#cCs |ii|idd|dS(ssAdjusts the view in the window so that FRACTION of the
        total height of the canvas is off-screen to the top.RRN(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR^scCs#|ii|idd||dS(s\Shift the y-view according to NUMBER which is measured
        in "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRbscGs$|ii|iddf|dS(sObsolete function, use see.Rs
-pickplaceN(R+R1Ro(R3R4((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytyview_pickplacefsN(@RRRRR7RRRRRRRRRRRR"R$R&R'R)R=R*R+R,RRR]R1R2R3R6R8R:RRR;RRDR{R|RERFt
tag_configRHRRIRKRMRRORPRQRRt
window_configRSRTRRRRRRRU(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs~							(		
																												t_setitcBs#eZdZddZdZRS(s>Internal class. It wraps the command in the widget OptionMenu.cCs||_||_||_dS(N(t
_setit__valuet_setit__vart_setit__callback(R3tvarR5RB((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7ms		cGs8|ii|i|io|i|i|ndS(N(RZR0RYR[(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyROqs
N(RRRRR7RO(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRXkst
OptionMenucBs)eZdZdZdZdZRS(s?OptionMenu which allows the user to select a value from a menu.c
	Os5hdd<|d<dd<td<dd<dd	<}ti||d
|d|_t|dd
dd}|_|i|_|id}|i	do|d=n|ot
d|idn|id|dt
|||x0|D](}	|id|	dt
||	|qW||d
<dS(sConstruct an optionmenu widget with the parent MASTER, with
        the resource textvariable set to VARIABLE, the initially selected
        value VALUE, the other menu values VALUES and an additional
        keyword argument command.itborderwidthttextvariableitindicatorontreliefRRthighlightthicknessR	t
tk_optionMenuR6RttearoffiRsunknown option -RN(tRAISEDRKR7RFRt_OptionMenu__menuRotmenunameR=RRRRRX(
R3R4R?R5RtkwargsRjRRBR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7xs&	cCs(|djo|iSnti||S(NR(RfRKR(R3R6((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRs
cCsti|d|_dS(s,Destroy this widget and the associated menu.N(RRbRRf(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRbs
(RRRR7RRb(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]vs		tImagecBsteZdZdZdhddZdZdZdZdZ	dZ
e
ZdZd	Z
d
ZRS(sBase class for images.ic	Ks@d|_|pt}|p
tdq.n|i|_|pFtid7_dtif}|ddjod|d}qn|o|ot||f}n|o
|}nd	}xN|iD]@\}}t	|o|i
|}n|d||f}qW|iidd||f|||_dS(
NsToo early to create imageis	pyimage%riRERCRR((RR6RRR+Rit_last_idRRRFR@R1(	R3timgtypeR6RR4RjRRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s.	


 cCs|iS(N(R6(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR:scCsE|io7y|iidd|iWqAtj
oqAXndS(NRR(R6R+R1R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR9s

cCs$|ii|idd||dS(NR|RE(R+R1R6(R3R~R5((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|ii|idd|S(NR|RE(R+R1R6(R3R~((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscKsd}xt|iD]p\}}|dj	oW|ddjo|d }nt|o|i|}n|d||f}qqW|ii|idf|dS(sConfigure the image.iRCRERN((RRRRFR@R+R1R6(R3RjRRR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR|s

cCst|iidd|iS(sReturn the height of the image.RR(RWR+R1R6(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|iidd|iS(s8Return the type of the imgage, e.g. "photo" or "bitmap".RR(R+R1R6(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCst|iidd|iS(sReturn the width of the image.RR((RWR+R1R6(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR(sN(RRRRjRR7R:R9RRR|RRRR((((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRis					
		t
PhotoImagecBseZdZdhddZdZdZdZdZddZ	ddZ
d	Zdd
ZdddZ
RS(
s?Widget which can display colored images in GIF, PPM/PGM format.cKs ti|d||||dS(stCreate an image with NAME.

        Valid resource names: data, format, file, gamma, height, palette,
        width.tphotoN(RiR7(R3R6RR4Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7scCs|ii|iddS(sDisplay a transparent image.tblankN(R+R1R6(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRnscCs|ii|idd|S(sReturn the value of OPTION.R}RE(R+R1R6(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR}scCs|ii|idd|S(NR}RE(R+R1R6(R3R~((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs&t}|ii|d|i|S(s;Return a new PhotoImage with the same image as this widget.tcopy(RlR+R1R6(R3t	destImage((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRos	R&cCsFt}|djo
|}n|ii|d|id|||S(s\Return a new PhotoImage with the same image as this widget
        but zoom it with X and Y.R&Ros-zoom(RlR+R1R6(R3RR+Rp((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytzooms
	

"cCsFt}|djo
|}n|ii|d|id|||S(skReturn a new PhotoImage based on the same image as this widget
        but use only every Xth or Yth pixel.R&Ros
-subsample(RlR+R1R6(R3RR+Rp((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	subsamples
	

"cCs|ii|id||S(s8Return the color (red, green, blue) of the pixel at X,Y.R=(R+R1R6(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=scCsd|id|f}|o7|ddjo|d}n|dt|}n|ii|dS(syPut row formated colors to image starting from
        position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))tputis-toiN(s-to(R6RR+R1(R3RRRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRsscCs`|id|f}|o|d|f}n|o|dt|}n|ii|dS(sRWrite image to file FILENAME in FORMAT starting from
        position FROM_COORDS.R-s-formats-fromN(s-from(R6RR+R1(R3tfilenametformattfrom_coordsRi((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR-	
sN(RRRRR7RnR}RRoRqRrR=RsR-(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRls					
tBitmapImagecBs eZdZdhddZRS(s"Widget which can display a bitmap.cKs ti|d||||dS(sqCreate a bitmap with NAME.

        Valid resource names: background, data, file, foreground, maskdata, maskfile.RN(RiR7(R3R6RR4Rj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRw
scCstiiddS(NRR(RR+R1(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCstiiddS(NRR(RR+R1(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
stSpinboxcBseZdZdhdZdZddZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZddZRS(sspinbox widget.cKsti||d||dS(sConstruct a spinbox widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, background, borderwidth,
            cursor, exportselection, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, insertbackground,
            insertborderwidth, insertofftime,
            insertontime, insertwidth, justify, relief,
            repeatdelay, repeatinterval,
            selectbackground, selectborderwidth
            selectforeground, takefocus, textvariable
            xscrollcommand.

        WIDGET-SPECIFIC OPTIONS

            buttonbackground, buttoncursor,
            buttondownrelief, buttonuprelief,
            command, disabledbackground,
            disabledforeground, format, from,
            invalidcommand, increment,
            readonlybackground, state, to,
            validate, validatecommand values,
            width, wrap,
        tspinboxN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7!
scCs|ii|id|S(sReturn a tuple of X1,Y1,X2,Y2 coordinates for a
        rectangle which encloses the character given by index.

        The first two elements of the list give the x and y
        coordinates of the upper-left corner of the screen
        area covered by the character (in pixels relative
        to the widget) and the last two elements give the
        width and height of the character, in pixels. The
        bounding box may refer to a region outside the
        visible area of the window.
        R(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR>
scCs|ii|id||S(sWDelete one or more elements of the spinbox.

        First is the index of the first character to delete,
        and last is the index of the character just after
        the last one to delete. If last isn't specified it
        defaults to first+1, i.e. a single character is
        deleted.  This command returns an empty string.
        R(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRL
s	cCs|ii|idS(sReturns the spinbox's stringR=(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR=W
scCs|ii|id|S(sAlter the position of the insertion cursor.

        The insertion cursor will be displayed just before
        the character given by index. Returns an empty string
        R(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR[
scCs|ii|id||S(s{Returns the name of the widget at position x, y

        Return value is one of: none, buttondown, buttonup, entry
        R(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRc
scCs|ii|id|S(s;Returns the numerical index corresponding to index
        R(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRj
scCs|ii|id||S(sDInsert string s at index

         Returns an empty string.
        R](R+R1Ro(R3RR_((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR]o
scCs|ii|id|S(sCauses the specified element to be invoked

        The element could be buttondown or buttonup
        triggering the action associated with it.
        RZ(R+R1Ro(R3telement((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRZv
scGs-|i|ii|idf|pdS(sInternal function.R((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR~
scCs|id|S(sRecords x and the current view in the spinbox window;

        used in conjunction with later scan dragto commands.
        Typically this command is associated with a mouse button
        press in the widget. It returns an empty string.
        R(R(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|id|S(sCompute the difference between the given x argument
        and the x argument to the last scan mark command

        It then adjusts the view left or right by 10 times the
        difference in x-coordinates. This command is typically
        associated with mouse motion events in the widget, to
        produce the effect of dragging the spinbox at high speed
        through the window. The return value is an empty string.
        R(R(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s
cGs-|i|ii|idf|pdS(sInternal function.R((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|id|S(sLocate the end of the selection nearest to the character
        given by index,

        Then adjust that end of the selection to be at index
        (i.e including but not going beyond index). The other
        end of the selection is made the anchor point for future
        select to commands. If the selection isn't currently in
        the spinbox, then a new selection is created to include
        the characters between index and the most recent selection
        anchor point, inclusive. Returns an empty string.
        R(R(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs
|idS(sClear the selection

        If the selection isn't in this widget then the
        command has no effect. Returns an empty string.
        R(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|id|S(sSets or gets the currently selected element.

        If a spinbutton element is specified, it will be
        displayed depressed
        Rz(R(R3Rz((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytselection_element
sN(RRRRR7RRR=RRRR]RZRRRRRRR{(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRx
s"														t
LabelFramecBseZdZdhdZRS(slabelframe widget.cKsti||d||dS(sConstruct a labelframe widget with the parent MASTER.

        STANDARD OPTIONS

            borderwidth, cursor, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, padx, pady, relief,
            takefocus, text

        WIDGET-SPECIFIC OPTIONS

            background, class, colormap, container,
            height, labelanchor, labelwidget,
            visual, width
        t
labelframeN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR|
stPanedWindowcBseZdZdhdZdZdZeZdZdZ	dZ
dZdZd	Z
d
ZdZdZd
ZddZeZdZRS(spanedwindow widget.cKsti||d||dS(sTConstruct a panedwindow widget with the parent MASTER.

        STANDARD OPTIONS

            background, borderwidth, cursor, height,
            orient, relief, width

        WIDGET-SPECIFIC OPTIONS

            handlepad, handlesize, opaqueresize,
            sashcursor, sashpad, sashrelief,
            sashwidth, showhandle,
        tpanedwindowN(RKR7(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7
scKs-|ii|id|f|i|dS(s!Add a child widget to the panedwindow in a new pane.

        The child argument is the name of the child widget
        followed by pairs of arguments that specify how to
        manage the windows. Options may have any of the values
        accepted by the configure subcommand.
        RN(R+R1RoR(R3RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
scCs|ii|id|dS(sRemove the pane containing child from the panedwindow

        All geometry management options for child will be forgotten.
        R8N(R+R1Ro(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRc
scCs|ii|id||S(sIdentify the panedwindow component at point x, y

        If the point is over a sash or a sash handle, the result
        is a two element list containing the index of the sash or
        handle, and a word indicating whether it is over a sash
        or a handle, such as {0 sash} or {2 handle}. If the point
        is over any other part of the panedwindow, the result is
        an empty list.
        R(R+R1Ro(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR
s
cGs-|i|ii|idf|pdS(sInternal function.tproxy((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs
|idS(sBReturn the x and y pair of the most recent proxy location
        tcoord(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytproxy_coordscCs
|idS(s+Remove the proxy from the display.
        R8(R(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytproxy_forget
scCs|id||S(s:Place the proxy at the given x and y coordinates.
        R(R(R3RR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pytproxy_placescGs-|i|ii|idf|pdS(sInternal function.tsash((RR+R1Ro(R3Ri((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRscCs|id|S(sAReturn the current x and y pair for the sash given by index.

        Index must be an integer between 0 and 1 less than the
        number of panes in the panedwindow. The coordinates given are
        those of the top left corner of the region containing the sash.
        pathName sash dragto index x y This command computes the
        difference between the given coordinates and the coordinates
        given to the last sash coord command for the given sash. It then
        moves that sash the computed difference. The return value is the
        empty string.
        R(R(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
sash_coordscCs|id|S(sRecords x and y for the sash given by index;

        Used in conjunction with later dragto commands to move the sash.
        R(R(R3R((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt	sash_mark*scCs|id|||S(s?Place the sash given by index at the given coordinates
        R(R(R3RRR+((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt
sash_place1scCs'|ii|idf|d|fS(swQuery a management option for window.

        Option may be any value allowed by the paneconfigure subcommand
        tpanecgetRE(R+R1Ro(R3RR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR6s	c	Ks|djom|oeh}xT|ii|ii|id|D]+}|ddf|d||dd<qCW|Snt|tjoQ|oI|ii|ii|id|d|}|ddf|dSn|ii|id|f|i||dS(s
Query or modify the management options for window.

        If no option is specified, returns a list describing all
        of the available options for pathName.  If option is
        specified with no value, then the command returns a list
        describing the one named option (this list will be identical
        to the corresponding sublist of the value returned if no
        option is specified). If one or more option-value pairs are
        specified, then the command modifies the given widget
        option(s) to have the given value(s); in this case the
        command returns an empty string. The following options
        are supported:

        after window
            Insert the window after the window specified. window
            should be the name of a window already managed by pathName.
        before window
            Insert the window before the window specified. window
            should be the name of a window already managed by pathName.
        height size
            Specify a height for the window. The height will be the
            outer dimension of the window including its border, if
            any. If size is an empty string, or if -height is not
            specified, then the height requested internally by the
            window will be used initially; the height may later be
            adjusted by the movement of sashes in the panedwindow.
            Size may be any value accepted by Tk_GetPixels.
        minsize n
            Specifies that the size of the window cannot be made
            less than n. This constraint only affects the size of
            the widget in the paned dimension -- the x dimension
            for horizontal panedwindows, the y dimension for
            vertical panedwindows. May be any value accepted by
            Tk_GetPixels.
        padx n
            Specifies a non-negative value indicating how much
            extra space to leave on each side of the window in
            the X-direction. The value may have any of the forms
            accepted by Tk_GetPixels.
        pady n
            Specifies a non-negative value indicating how much
            extra space to leave on each side of the window in
            the Y-direction. The value may have any of the forms
            accepted by Tk_GetPixels.
        sticky style
            If a window's pane is larger than the requested
            dimensions of the window, this option may be used
            to position (or stretch) the window within its pane.
            Style is a string that contains zero or more of the
            characters n, s, e or w. The string can optionally
            contains spaces or commas, but they are ignored. Each
            letter refers to a side (north, south, east, or west)
            that the window will "stick" to. If both n and s
            (or e and w) are specified, the window will be
            stretched to fill the entire height (or width) of
            its cavity.
        width size
            Specify a width for the window. The width will be
            the outer dimension of the window including its
            border, if any. If size is an empty string, or
            if -width is not specified, then the width requested
            internally by the window will be used initially; the
            width may later be adjusted by the movement of sashes
            in the panedwindow. Size may be any value accepted by
            Tk_GetPixels.

        t
paneconfigureiiREN(RR+RJR1RoRRR(R3RhRRjR((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR>sD
)cCs|ii|idS(s+Returns an ordered list of the child panes.tpanes(R+R1Ro(R3((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRsN(RRRRR7RRcR8RRRRRRRRRRRt
paneconfigR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR~
s$	
											Qt
StudbuttoncBseZdhdZRS(cKsiti||d|||id|i|id|i|id|i|id|idS(Nt
studbuttons<Any-Enter>s<Any-Leave>s<1>s<ButtonRelease-1>(RKR7R9RSRURVRW(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7s
N(RRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRst	TributtoncBseZdhdZRS(cKsti||d|||id|i|id|i|id|i|id|i|d|d<|d|d<dS(	Nt	tributtons<Any-Enter>s<Any-Leave>s<1>s<ButtonRelease-1>tbgtfgtactivebackground(RKR7R9RSRURVRW(R3R4RRj((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyR7sN(RRRR7(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRsc
Cst}dt}tdjo1y|tdd}WqQtj
oqQXnt|d|}|it|ddd|d}|i||_t|dd	d|i}|i|i	|i
|i|idS(
NsThis is Tcl/Tk version %sg333333 @s
This should be a cedilla: s
iso-8859-1Rs	Click me!RcSs|iidd|idS(Rs[%s](ttestR|(Ry((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyRstQUIT(
Rt
TclVersiontunicodet	NameErrorRRRQRRbRR
RR](RyRRRR@((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pyt_tests(	

		

	



t__main__(YRt__version__RqtplatformtFixTkRttkinterRRtTkconstantstMacOSRtImportErrorRRRRRRRtREADABLEtWRITABLEt	EXCEPTIONtcreatefilehandlerRtdeletefilehandlerRRRRRRR R$R/R%RPRTRXRZR]RVRWRYR[R`RNRRR5R6R;R?RDRKRLRQR\R_R`RaRbRcRRRRRRRR
RR
RRRXR]RiRlRwRRRxR|R~RRRR(((s*/usr/local/lib/python2.5/lib-tk/Tkinter.pys<module>s	

				

	
,		L	*~-258>				
Jvy!(a%<<		
	


Man Man