Module tkSimpleDialog
[hide private]
[frames] | no frames]

Module tkSimpleDialog

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

Classes [hide private]
Dialog
Class to open dialogs.
_QueryDialog
_QueryInteger
_QueryFloat
_QueryString
Functions [hide private]
 
askinteger(title, prompt, **kw)
get an integer from the user
 
askfloat(title, prompt, **kw)
get a float from the user
 
askstring(title, prompt, **kw)
get a string from the user

Imports: getdouble, MULTIPLE, TypeType, mainloop, Canvas, AtSelLast, CodeType, TRUE, getboolean, LAST, BASELINE, BOTTOM, Wm, NUMERIC, Toplevel, DictProxyType, Pack, ObjectType, DictType, EXTENDED, OFF, ALL, CURRENT, CallWrapper, Scrollbar, ListType, MethodType, ModuleType, FIRST, ON, TracebackType, image_names, Text, YES, LambdaType, GROOVE, XRangeType, Scale, NORMAL, Misc, BUTT, Label, X, LabelFrame, ROUND, image_types, AtInsert, StringType, NONE, CENTER, FloatType, Spinbox, Radiobutton, Checkbutton, Grid, StringTypes, GeneratorType, Button, FLAT, END, VERTICAL, MITER, Widget, DISABLED, S, COMMAND, EllipsisType, W, ACTIVE, NSEW, EW, FrameType, TclVersion, CHORD, tkinter, Listbox, Image, BitmapImage, Event, RADIOBUTTON, Place, HIDDEN, PAGES, NoDefaultRoot, CHAR, SEPARATOR, BooleanType, HORIZONTAL, TclError, MOVETO, WORD, SUNKEN, NO, DictionaryType, NotImplementedType, READABLE, NE, CHECKBUTTON, Variable, NS, ANCHOR, NW, RAISED, DoubleVar, RIDGE, BooleanVar, Tributton, SOLID, N, CASCADE, SEL_FIRST, TkVersion, UNDERLINE, UNITS, TupleType, OptionMenu, LongType, SEL, FALSE, ClassType, Frame, SEL_LAST, SW, SINGLE, InstanceType, MemberDescriptorType, UnicodeType, LEFT, FunctionType, wantobjects, SE, EXCEPTION, FixTk, IntType, Menu, TOP, GetSetDescriptorType, DOTBOX, OUTSIDE, Tk, IntVar, AtSelFirst, UnboundMethodType, PanedWindow, INSERT, BuiltinMethodType, AtEnd, BROWSE, Tcl, BuiltinFunctionType, BaseWidget, ARC, SliceType, BEVEL, E, BOTH, PIESLICE, Message, FileType, sys, Y, Entry, PhotoImage, RIGHT, BufferType, Studbutton, INSIDE, Menubutton, WRITABLE, StringVar, PROJECTING, At, ComplexType, SCROLL, NoneType, getint, os


Function Details [hide private]

askinteger(title, prompt, **kw)

 
get an integer from the user

Arguments:

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

Return value is an integer

askfloat(title, prompt, **kw)

 
get a float from the user

Arguments:

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

Return value is a float

askstring(title, prompt, **kw)

 
get a string from the user

Arguments:

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

Return value is a string