if you press its ok buttonit returns data structure that identifies the selected colorwhich can be used in all color contexts in tkinter it includes rgb values and hexadecimal color string ( (( )'# ')more on how this tuple can be useful in moment if you press cancelthe script gets back tuple containing two nones (nones of the python varietythat isprinting dialog results and passing callback data with lambdas the dialog demo launcher bar displays standard dialogs and can be made to display others by simply changing the dialogtable module it imports as codedthoughit really shows only dialogsit would also be nice to see their return values so that we know how to use them in scripts example - adds printing of standard dialog results to the stdout standard output stream example - pp \gui\tour\demodlg-print py ""similarbut show return values of dialog callsthe lambda saves data from the local scope to be passed to the handler (button press handlers normally get no argumentsand enclosing scope references don' work for loop variablesand works just like nested def statementdef func(key=key)self printit(key"" tkinter tourpart