Module Expr Str ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpAdd Call AttributeLoad NameLoad attr Num BinOpAdd Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword Num Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword BinOpAdd NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str keyword NameLoad Return Num If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareLt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad Return Num If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad Return Num Assign AttributeStore NameLoad attr NameLoad Return Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Print Call NameLoad Str Str keyword BinOpMult Num Num Print Call NameLoad Str Str keyword Num keyword Num Print Call NameLoad Str Str
N/A N/A Dialog boxes

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

Dialog -- a base class for dialogs

askinteger -- get an integer from the user

askfloat -- get a float from the user

askstring -- get a string from the user
 Tkinter * Dialog N/A Toplevel N/A N/A Class to open dialogs.

    This class is intended as a base class for custom dialogs
     __init__ N/A N/A self parent title N/A None N/A N/A Initialize a dialog.

        Arguments:

            parent -- a parent window (the application window)

            title -- the dialog title
         N/A N/A N/A Toplevel __init__ self parent N/A N/A N/A self withdraw N/A N/A N/A parent winfo_viewable N/A N/A N/A N/A self transient parent N/A title N/A N/A N/A N/A self title title N/A N/A self parent parent N/A N/A self result None N/A body N/A Frame self N/A N/A self initial_focus N/A N/A self body body N/A N/A N/A body pack padx 5 pady 5 N/A N/A N/A self buttonbox N/A N/A N/A self initial_focus N/A N/A N/A self initial_focus self N/A N/A N/A self protocol WM_DELETE_WINDOW N/A self cancel N/A N/A N/A self parent None N/A N/A N/A N/A self geometry N/A +%d+%d N/A N/A N/A N/A parent winfo_rootx 50 N/A N/A N/A parent winfo_rooty 50 N/A N/A N/A self deiconify N/A N/A N/A N/A self initial_focus focus_set N/A N/A N/A self wait_visibility N/A N/A N/A self grab_set N/A N/A N/A self wait_window self N/A destroy N/A N/A self N/A N/A N/A Destroy the window N/A N/A self initial_focus None N/A N/A N/A Toplevel destroy self N/A body N/A N/A self master N/A N/A N/A create dialog body.

        return widget that should have initial focus.
        This method should be overridden, and is called
        by the __init__ method.
         N/A N/A buttonbox N/A N/A self N/A N/A N/A add standard button box.

        override if you do not want the standard buttons
         N/A box N/A Frame self N/A w N/A Button box text OK width 10 command N/A self ok default ACTIVE N/A N/A N/A w pack side LEFT padx 5 pady 5 N/A w N/A Button box text Cancel width 10 command N/A self cancel N/A N/A N/A w pack side LEFT padx 5 pady 5 N/A N/A N/A self bind <Return> N/A self ok N/A N/A N/A self bind <Escape> N/A self cancel N/A N/A N/A box pack N/A ok N/A N/A self event N/A None N/A N/A N/A N/A N/A self validate N/A N/A N/A N/A N/A self initial_focus focus_set N/A N/A N/A N/A self withdraw N/A N/A N/A self update_idletasks N/A N/A N/A N/A N/A self apply N/A N/A N/A N/A self cancel N/A cancel N/A N/A self event N/A None N/A N/A N/A N/A self parent None N/A N/A N/A N/A N/A self parent focus_set N/A N/A N/A self destroy N/A validate N/A N/A self N/A N/A N/A validate the data

        This method is called automatically to validate the data before the
        dialog is destroyed. By default, it always validates OK.
         N/A 1 N/A apply N/A N/A self N/A N/A N/A process the data

        This method is called automatically to process the data, *after*
        the dialog is destroyed. By default, it does nothing.
         N/A N/A N/A _QueryDialog N/A Dialog N/A __init__ N/A N/A self title prompt initialvalue minvalue maxvalue parent N/A None None None None N/A N/A N/A parent N/A N/A Tkinter N/A parent N/A Tkinter _default_root N/A N/A self prompt prompt N/A N/A self minvalue minvalue N/A N/A self maxvalue maxvalue N/A N/A self initialvalue initialvalue N/A N/A N/A Dialog __init__ self parent title N/A destroy N/A N/A self N/A N/A N/A N/A self entry None N/A N/A N/A Dialog destroy self N/A body N/A N/A self master N/A N/A N/A w N/A Label master text N/A self prompt justify LEFT N/A N/A N/A w grid row 0 padx 5 sticky W N/A N/A self entry N/A Entry master name entry N/A N/A N/A N/A self entry grid row 1 padx 5 sticky N/A W E N/A N/A N/A self initialvalue None N/A N/A N/A N/A N/A self entry insert 0 N/A self initialvalue N/A N/A N/A N/A self entry select_range 0 END N/A N/A self entry N/A validate N/A N/A self N/A N/A N/A tkMessageBox N/A N/A N/A result N/A N/A self getresult N/A N/A N/A ValueError N/A N/A N/A N/A tkMessageBox showwarning Illegal value N/A N/A self errormessage 
Please try again parent self N/A 0 N/A N/A N/A N/A self minvalue None N/A result N/A self minvalue N/A N/A N/A N/A tkMessageBox showwarning Too small N/A The allowed minimum value is %s. Please try again. N/A self minvalue parent self N/A 0 N/A N/A N/A N/A self maxvalue None N/A result N/A self maxvalue N/A N/A N/A N/A tkMessageBox showwarning Too large N/A The allowed maximum value is %s. Please try again. N/A self maxvalue parent self N/A 0 N/A N/A self result result N/A 1 N/A N/A _QueryInteger N/A _QueryDialog N/A N/A errormessage Not an integer. getresult N/A N/A self N/A N/A N/A N/A int N/A N/A N/A self entry get N/A N/A askinteger N/A N/A title prompt N/A kw N/A N/A get an integer from the user

    Arguments:

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

    Return value is an integer
     N/A d N/A _QueryInteger title prompt kw N/A N/A d result N/A _QueryFloat N/A _QueryDialog N/A N/A errormessage Not a floating point value. getresult N/A N/A self N/A N/A N/A N/A float N/A N/A N/A self entry get N/A N/A askfloat N/A N/A title prompt N/A kw N/A N/A get a float from the user

    Arguments:

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

    Return value is a float
     N/A d N/A _QueryFloat title prompt kw N/A N/A d result N/A _QueryString N/A _QueryDialog N/A __init__ N/A N/A self N/A args kw N/A N/A N/A show kw N/A N/A N/A self __show N/A kw N/A show N/A N/A kw N/A show N/A N/A N/A self __show None N/A N/A N/A _QueryDialog __init__ self args kw N/A body N/A N/A self master N/A N/A N/A entry N/A N/A _QueryDialog body self master N/A N/A N/A self __show None N/A N/A N/A N/A entry configure show N/A self __show N/A entry N/A getresult N/A N/A self N/A N/A N/A N/A N/A N/A self entry get N/A N/A askstring N/A N/A title prompt N/A kw N/A N/A get a string from the user

    Arguments:

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

    Return value is a string
     N/A d N/A _QueryString title prompt kw N/A N/A d result N/A N/A N/A __name__ __main__ N/A N/A root N/A Tk N/A N/A N/A root update N/A N/A askinteger Spam Egg count initialvalue N/A 12 12 N/A N/A askfloat Spam Egg weight
(in tons) minvalue 1 maxvalue 100 N/A N/A askstring Spam Egg label